| Message ID | 20260117011448.3007171-1-sjg@u-boot.org |
|---|---|
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768612501; bh=vvh4sA8i4YZP3x/M4CKw9XQ6XXqDt72QpcRNvCLSflc=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=FnxWaXtothfu+2GQc/ezBVYjfaJqUI1wSbNwz+G8hoZxBLXA/p2nHvYFVK/J1rIyk kBT28+y2OofKgm73n/GcebKaZZHL77OnimLO13OIHHFtgFSICssb/L9tNw5bf2p/dT 7voUa6SncaF5oO4inqPBb92xvvCkQ2D1Hp1U2btudu5SoUewYJP3Z+9pjVLGQffJ2h nYLlJBJsv3K9L1AhubcpA+T+zmTLVSBdNfd5mtxjXdWBo2YrWppginQbh49VxWgUXx i7QDTdKlfeVA1SPaAQ989mihanLbXWa3ekyOMlRMC5vXpcLxncdrwvJEL0j95aSFRQ JmnjZosAkv87w== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 09283693FC for <u-boot-concept@u-boot.org>; Fri, 16 Jan 2026 18:15:01 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 5e81RHG0uIJ3 for <u-boot-concept@u-boot.org>; Fri, 16 Jan 2026 18:15:00 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768612500; bh=vvh4sA8i4YZP3x/M4CKw9XQ6XXqDt72QpcRNvCLSflc=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=T7cHrPsFpdjoQ7vBu53ykZrvri6oE8c/QI62gOFJ5g/dghopR1N4NFB/brDUyTuxx f/X67NMe9DxJuiWUDq5npco5U5hOv5qk9si16TZRfS1o8UDZ8irieA9Y1ZGvLT8024 X9JRdt9FZfRpslefndBlWU9XtFqv3OYGvneNlvNaD3qaxCJLOwW/4vT7UyxzrG3xRl /nm/kb9/5DsStapminI/hlr+m1Fv2jkWyelUlmSBYArWaHSOkriP7VnQZ6ocpaHbQ4 5Px3HA/tGpTU0oqovp6bQZo+UilSmhLq0iFFPQWGgVLqnGHKvkAqG1eItMYafJTyiu Y1jviwU30aBFw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id E90BE693E0 for <u-boot-concept@u-boot.org>; Fri, 16 Jan 2026 18:15:00 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768612498; bh=PygbgPJaQlvxWHstLI7VMzvj5iZhASmHSpIm+IoPLW0=; h=From:To:Cc:Subject:Date:From; b=OKpF5ceYCnzfl6tF2bN4GPiykgbPjbXlGeIeOXM1ADy6uHAzFpeJmbrZlNuzSHG7u /RLHcsyxoI5uU4D/xWptylAhkUQwgOS+YguSZOW6RrSaljKHjNbYepkti58vB1alHf 8XTNLz/rKyQ9rHQyx66QDdO5NwVq3B3R4wKLAZXdzZM6EA/pwHS8JQ76A5qo1z2Z8V OGWQ7QPdSfINjHrA6qmRI7gM0SjSfWvD1KYa4wIuTMCZs5/FQo2XVWH3e31ofmky18 RaT3w7trCsNL2n7m8PT9RdYsPba/ijIEYV6iW5m1Icv1FQLZIoXuHvQlR+BVzFsggk L8oy2r+kNb9+Q== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id F1840693E0; Fri, 16 Jan 2026 18:14:58 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id Af9vrTbE6Cps; Fri, 16 Jan 2026 18:14:58 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768612494; bh=GagDPwj5MN+3+3/OoqrbfOkQANwKrTAK6V6GFHMt8jc=; h=From:To:Cc:Subject:Date:From; b=w14CfOId+ly8guCG7/RcEKpVwys/CUUIaGZkZRDVyuX1i5gJzbIddHWAgklyaiIvD s5irj1CSGF1yEyqbN8LRa1F21cv3yFVLWfhzk5e6uu7cWVbANtBWEyUX1xVww+6lIo +4kcUsrQH22S0T6126EQb1j6khpMDpzvrPtuoc7kW1eYb0uIgIXrVWEspYDk59VctK 2lfvvKdC3CJMC0GV1qjJJTdDs9yaP0rtPnw/7XI+GJCQAQjqzIEG/p92j2hDaebfJs fssL+lJlXYqeURCCPCwHMZnu3zUyr52BpmMH+4g8PPDE5ItwrDH4ICyEJwym76I8JG j43gw7BVuRNcw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id A665F6913F; Fri, 16 Jan 2026 18:14:54 -0700 (MST) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Fri, 16 Jan 2026 18:14:22 -0700 Message-ID: <20260117011448.3007171-1-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Message-ID-Hash: 3UVS63AZEDMG73E4XCIIBQMRPTRRLFDP X-Message-ID-Hash: 3UVS63AZEDMG73E4XCIIBQMRPTRRLFDP X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass <simon.glass@canonical.com> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 00/19] ext4l: Reduce ext4_uboot.h size by moving code to include/linux List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/3UVS63AZEDMG73E4XCIIBQMRPTRRLFDP/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
ext4l: Reduce ext4_uboot.h size by moving code to include/linux
|
|
Message
Simon Glass
Jan. 17, 2026, 1:14 a.m. UTC
From: Simon Glass <simon.glass@canonical.com>
This series reduces fs/ext4l/ext4_uboot.h from 2584 to 1980 lines (a 23%
reduction) by moving definitions to appropriate include/linux/ header
files.
The ext4l subsystem requires many Linux kernel types and functions.
Rather than keeping everything in one large file, this series creates
proper stub headers in include/linux/ matching Linux kernel
organisation:
- ktime.h: Time functions and ktime_t type
- rcupdate.h: RCU stubs (single-threaded no-ops)
- shrinker.h: Memory-reclaim stubs
- mm_types.h: VM stubs (address_space, vm_area_struct)
- pagemap.h: Page cache and folio stubs
- bio.h: Block I/O stubs
- fs_context.h/fs_parser.h: Filesystem context types
- dcache.h: Dentry and qstr types
- uuid.h: UUID/GUID types
- smp.h: SMP memory barriers
- refcount.h: Reference counting type
- kobject.h: Kobject stubs
- xarray.h: XArray stubs
- mempool.h: Memory pool stubs
- kdev_t.h: Device number macros
- fsmap.h: Filesystem map definitions
Additionally, cmpxchg(), try_cmpxchg(), and xchg() are moved to
asm-generic/atomic.h, and blk_plug is added to linux/blkdev.h.
All implementations are appropriate stubs for U-Boot's single-threaded,
no-VM, no-page-cache environment.
Simon Glass (19):
linux: Add ktime.h header with time functions
linux: Add rcupdate.h header with RCU stubs
linux: Add shrinker.h header with memory-reclaim stubs
linux: Add mm_types.h header with VM stubs
linux: Add pagemap.h header with folio and page cache stubs
linux: Add bio.h header with block I/O stubs
linux: Add fs_context.h and fs_parser.h headers
linux: Add dcache.h header with dentry stubs
linux: Add uuid.h header with UUID/GUID types
asm-generic: atomic: Add cmpxchg() macro
linux: Add smp.h header with SMP stubs
linux: Add refcount.h header with refcount_t type
linux: Add kobject.h header with kobject stubs
linux: Add xarray.h header with XArray stubs
linux: Add mempool.h header with memory pool stubs
linux: Add kdev_t.h header with device number macros
linux: blkdev: Add blk_plug structure and operations
linux: Add fsmap.h header with filesystem map definitions
asm-generic: atomic: Add xchg() and try_cmpxchg() macros
fs/ext4l/ext4_fscrypt.h | 9 +-
fs/ext4l/ext4_uboot.h | 738 ++++-------------------------------
include/asm-generic/atomic.h | 55 +++
include/linux/bio.h | 117 ++++++
include/linux/blkdev.h | 25 ++
include/linux/dcache.h | 94 +++++
include/linux/fs_context.h | 154 ++++++++
include/linux/fs_parser.h | 110 ++++++
include/linux/fsmap.h | 46 +++
include/linux/kdev_t.h | 56 +++
include/linux/kobject.h | 34 ++
include/linux/ktime.h | 70 ++++
include/linux/mempool.h | 57 +++
include/linux/mm_types.h | 116 ++++++
include/linux/pagemap.h | 201 ++++++++++
include/linux/rcupdate.h | 54 +++
include/linux/refcount.h | 70 ++++
include/linux/shrinker.h | 83 ++++
include/linux/smp.h | 60 +++
include/linux/uuid.h | 120 ++++++
include/linux/xarray.h | 50 +++
21 files changed, 1640 insertions(+), 679 deletions(-)
create mode 100644 include/linux/bio.h
create mode 100644 include/linux/dcache.h
create mode 100644 include/linux/fs_context.h
create mode 100644 include/linux/fs_parser.h
create mode 100644 include/linux/fsmap.h
create mode 100644 include/linux/kdev_t.h
create mode 100644 include/linux/kobject.h
create mode 100644 include/linux/ktime.h
create mode 100644 include/linux/mempool.h
create mode 100644 include/linux/mm_types.h
create mode 100644 include/linux/pagemap.h
create mode 100644 include/linux/rcupdate.h
create mode 100644 include/linux/refcount.h
create mode 100644 include/linux/shrinker.h
create mode 100644 include/linux/smp.h
create mode 100644 include/linux/uuid.h
create mode 100644 include/linux/xarray.h