| Message ID | 20260119061529.3383191-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=1768803343; bh=WEyHYVUS6obCFlaMAsDD5LfY185pC/c0MT5wMIAGn58=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=OgZQD6/i6vskFBetReWX2lPP4J1FnWwL1MDSJbeq5PL5oDYI/crr9zHhSFdN4TKwZ hdco0lXPiJ7xcVHn2eUq02j3hFyNp/2KpHFSJBjhnppaBgqpi0IeFiiQuii4uTfkvT NdJzVEpn36RbJrnT0/xD6SJjEVIOLtNxgyeBLLJaA49FyutK4kTwpbjgaCDrnpXXG1 BfpJkSLHiie4AFGIpSZPEViJlPEV6x3DH59RnINo6UlvHRPmxJWymlrqW3j6I5xWfF 7r1+k0EZrIb3rLz0x/b3ZobB85W4MH6X+UQgjuwXLFKhqawh7QkIIjpBWdm521x0sS /V1zxwe6cNwgA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id AB48A693AE for <u-boot-concept@u-boot.org>; Sun, 18 Jan 2026 23:15:43 -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 Nat9qxM8Ihgk for <u-boot-concept@u-boot.org>; Sun, 18 Jan 2026 23:15:43 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768803343; bh=WEyHYVUS6obCFlaMAsDD5LfY185pC/c0MT5wMIAGn58=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=OgZQD6/i6vskFBetReWX2lPP4J1FnWwL1MDSJbeq5PL5oDYI/crr9zHhSFdN4TKwZ hdco0lXPiJ7xcVHn2eUq02j3hFyNp/2KpHFSJBjhnppaBgqpi0IeFiiQuii4uTfkvT NdJzVEpn36RbJrnT0/xD6SJjEVIOLtNxgyeBLLJaA49FyutK4kTwpbjgaCDrnpXXG1 BfpJkSLHiie4AFGIpSZPEViJlPEV6x3DH59RnINo6UlvHRPmxJWymlrqW3j6I5xWfF 7r1+k0EZrIb3rLz0x/b3ZobB85W4MH6X+UQgjuwXLFKhqawh7QkIIjpBWdm521x0sS /V1zxwe6cNwgA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 9ABF5694C7 for <u-boot-concept@u-boot.org>; Sun, 18 Jan 2026 23:15:43 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768803341; bh=p/PieRtmRghvrIOuuyigmOxcRoJ0+tLko1V4v+Uf5Wo=; h=From:To:Cc:Subject:Date:From; b=YoCX+0QKYtRh0Jh/vNcPEMQNR9DPRz2/gsVRtvPiPhW8tMgY5m/O0oXXMZypuo9UZ sGKF1/xjz5wyU9uOd3mL6YdUjV9pDZ98BpGbZSvsuJ4OYuHb4dz4c4pOBArzuMjPY1 W/3ZrQBIZT6pJ+w/do228HpYYhhBye8VJpO7PvbLUH066oYSE8JkHWxZtOp+kw2Wrc zHzy8L0zkbUWV2icgA2mNozz/pmxMN2/VgWAmF0t2eOK6jHcjkqiLBjxj3Rb9J/6XQ DIvWRJdLwVrzHEwLub8URCNGOCt6BKfRDojOlye4wi7ugCOosih4w5c1m5w1xTe4l0 ngKb1jfh3k6BA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id C868B694C7; Sun, 18 Jan 2026 23:15:41 -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 5d4hXxW1jNjv; Sun, 18 Jan 2026 23:15:41 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768803337; bh=EFqgYfnxzO9wLGH7ZI51Oi/4y6RbOWiafwC9f8Ov46I=; h=From:To:Cc:Subject:Date:From; b=s6EvpsCzBrSUdFGCS/RlgUbtQACzBlptLI+A/sQS2GdHM5PF7d3qA2mnrOBk6MWjx p5565G1B12fYvZ7Bmuk5mxQlc6F0H/0KDWrQLUvQDGE0w5XbTnycFldq/Yiz5HzPAA e0WriCvQcc/U5IYe49Oe4FvpZ+TdudGMyDChJQTYfThw6IGH3+XLHICOVF5bqfxEi0 ndaOxDWu8kj/+xSEExAY7qoMnzMGP+CXTfpGYpvTgi3Q7iLeBM5QuS9doro2TwZUdg oyW/9FPCCx5Ul6BLgh/T00dt5oiaWMIcBtrsrioJgJoba8AJxRxSZdpc80i1EUyM5D TLlS2Cl/XQ2iw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 7AD34693AE; Sun, 18 Jan 2026 23:15:37 -0700 (MST) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Sun, 18 Jan 2026 23:14:58 -0700 Message-ID: <20260119061529.3383191-1-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Message-ID-Hash: SCYMBRIYVJNJ7RCGEMAYVDWBUL46X6QL X-Message-ID-Hash: SCYMBRIYVJNJ7RCGEMAYVDWBUL46X6QL 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/23] Reduce ext4_uboot.h by moving definitions to linux headers 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/SCYMBRIYVJNJ7RCGEMAYVDWBUL46X6QL/> 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 |
Reduce ext4_uboot.h by moving definitions to linux headers
|
|
Message
Simon Glass
Jan. 19, 2026, 6:14 a.m. UTC
From: Simon Glass <simon.glass@canonical.com>
This series continues the work to reduce fs/ext4l/ext4_uboot.h by
moving definitions to their proper locations in include/linux/
The ext4l compatibility header started at 2584 lines. Previous work
reduced it to 1816 lines. This series further reduces it to 1677
lines by moving various definitions to appropriate headers:
- Block I/O flags (REQ_OP_*, REQ_SYNC, etc.) to linux/blk_types.h
- Block device flags (BLK_OPEN_*) to linux/blkdev.h
- Memory allocation flags (__GFP_*, SLAB_*) to linux/slab.h
- Scheduler stubs to linux/sched.h
- Process flags (PF_MEMALLOC*) to linux/sched.h
- System state definitions to linux/kernel.h
- Quota format constants to linux/quotaops.h
- STATX flags and struct kstat to linux/stat.h
- Timer definitions to new linux/hrtimer.h
- Inode mutex classes to linux/fs.h
- Various other small moves
This improves code organisation by placing definitions in headers
matching Linux kernel structure, making the codebase easier to
maintain and understand.
Simon Glass (23):
linux: random: Add get_random_u32_below and prandom_u32_max
linux: path: Add path_put and d_path stubs
linux: Add minmax.h with in_range helper
linux: Add writeback.h with writeback operation stubs
linux: Add iversion.h with inode version stubs
linux: Add namei.h with pathname lookup flags
linux: Add fsverity.h with fs-verity stubs
linux: quotaops: Add more quota operation stubs
linux: Add ioprio.h with I/O priority definitions
ext4l: Move rwsem_is_locked to linux/rwsem.h
ext4l: Add linux/hrtimer.h with timer stubs
ext4l: Move STATX_* and struct kstat to linux/stat.h
ext4l: Move REQ_OP and SLAB flags to proper headers
ext4l: Move REQ_IDLE and REQ_PREFLUSH to blk_types.h
ext4l: Move QFMT_VFS_* constants to quotaops.h
ext4l: Move REQ_META, REQ_PRIO, REQ_RAHEAD to blk_types.h
ext4l: Move __GFP_MOVABLE and __GFP_FS to slab.h
ext4l: Move system_state definitions to linux/kernel.h
ext4l: Move BLK_OPEN_* flags to linux/blkdev.h
ext4l: Move scheduler stubs to linux/sched.h
ext4l: Move PF_MEMALLOC flags to linux/sched.h
ext4l: Move SECTOR_SHIFT to linux/blk_types.h
ext4l: Move I_MUTEX_* constants to linux/fs.h
fs/ext4l/ext4_uboot.h | 245 +++++++++-----------------------------
fs/ext4l/stub.c | 44 +------
include/linux/blk_types.h | 22 ++++
include/linux/blkdev.h | 7 ++
include/linux/fs.h | 17 ++-
include/linux/fsverity.h | 97 +++++++++++++++
include/linux/hrtimer.h | 39 ++++++
include/linux/ioprio.h | 64 ++++++++++
include/linux/iversion.h | 96 +++++++++++++++
include/linux/kernel.h | 17 +++
include/linux/minmax.h | 52 ++++++++
include/linux/namei.h | 26 ++++
include/linux/path.h | 31 +++++
include/linux/quotaops.h | 61 ++++++++--
include/linux/random.h | 25 +++-
include/linux/rwsem.h | 1 +
include/linux/sched.h | 11 ++
include/linux/slab.h | 10 ++
include/linux/stat.h | 48 ++++++++
include/linux/writeback.h | 49 ++++++++
20 files changed, 713 insertions(+), 249 deletions(-)
create mode 100644 include/linux/fsverity.h
create mode 100644 include/linux/hrtimer.h
create mode 100644 include/linux/ioprio.h
create mode 100644 include/linux/iversion.h
create mode 100644 include/linux/minmax.h
create mode 100644 include/linux/namei.h
create mode 100644 include/linux/writeback.h