[Concept,00/12] ext4l: Continue reducing ext4_uboot.h size with more headers

Message ID 20260118203739.1974323-1-sjg@u-boot.org
Headers
Series ext4l: Continue reducing ext4_uboot.h size with more headers |

Message

Simon Glass Jan. 18, 2026, 8:37 p.m. UTC
  From: Simon Glass <simon.glass@canonical.com>

This series continues reducing fs/ext4l/ext4_uboot.h by moving more
definitions to appropriate include/linux/ header files.

The previous series reduced the file from 2584 to 1980 lines. This
series further reduces it to 1816 lines (total 30% reduction).

New headers created:
- fiemap.h: FIEMAP extent types and fiemap_extent_info structure
- statfs.h: kstatfs structure for filesystem statistics
- exportfs.h: NFS export operations (fid, export_operations)
- mbcache.h: Metadata block cache stubs
- wait_bit.h: Wait bit operation stubs
- ratelimit.h: Rate limiting stubs
- projid.h: Project ID type (kprojid_t)
- mnt_idmap.h: Mount ID mapping stub
- hash.h: hash_64() and hash_32() functions
- blockgroup_lock.h: Block group lock structure
- delayed_call.h: Delayed function call support

Updated headers:
- capability.h: Added CAP_SYS_ADMIN
- uio.h: Added kiocb and IOCB_* flags
- utsname.h: Added init_utsname() function
- proc_fs.h: Added proc_ops structure and procfs stubs

All implementations are appropriate stubs for U-Boot's single-threaded
environment. Tests pass with these changes.


Simon Glass (12):
  linux: capability: Add CAP_SYS_ADMIN constant
  linux: uio: Add kiocb struct and IOCB_* flags
  linux: Add fiemap.h header with extent mapping types
  linux: Add statfs.h header with kstatfs struct
  linux: Add exportfs.h header with NFS export operations
  linux: Add mbcache.h header with metadata cache stubs
  linux: Add wait_bit.h header with wait bit stubs
  linux: Add ratelimit.h header with rate limiting stubs
  linux: utsname/proc_fs: Add init_utsname() and proc_ops
  linux: Add projid.h and mnt_idmapping.h headers
  linux: Add hash.h header with hash_64 function
  linux: Add blockgroup_lock.h and delayed_call.h headers

 fs/ext4l/ext4_uboot.h           | 250 ++++++--------------------------
 include/linux/blockgroup_lock.h |  25 ++++
 include/linux/capability.h      |   1 +
 include/linux/delayed_call.h    |  56 +++++++
 include/linux/exportfs.h        |  78 ++++++++++
 include/linux/fiemap.h          |  45 ++++++
 include/linux/hash.h            |  33 +++++
 include/linux/mbcache.h         |  60 ++++++++
 include/linux/mnt_idmapping.h   |  23 +++
 include/linux/proc_fs.h         |  25 ++++
 include/linux/projid.h          |  43 ++++++
 include/linux/ratelimit.h       |  35 +++++
 include/linux/statfs.h          |  42 ++++++
 include/linux/uio.h             |  19 +++
 include/linux/utsname.h         |  12 ++
 include/linux/wait_bit.h        |  47 ++++++
 16 files changed, 587 insertions(+), 207 deletions(-)
 create mode 100644 include/linux/blockgroup_lock.h
 create mode 100644 include/linux/delayed_call.h
 create mode 100644 include/linux/exportfs.h
 create mode 100644 include/linux/fiemap.h
 create mode 100644 include/linux/hash.h
 create mode 100644 include/linux/mbcache.h
 create mode 100644 include/linux/mnt_idmapping.h
 create mode 100644 include/linux/projid.h
 create mode 100644 include/linux/ratelimit.h
 create mode 100644 include/linux/statfs.h
 create mode 100644 include/linux/wait_bit.h