| Message ID | 20251230205157.3383926-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=1767127939; bh=vN7vlTY96FwiVbm81UtIX2iGV1PuwrUxh0RfnPiWi/s=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=Eqj+3AF2sliNffKQxPGsvmi7kI4U5lCuu2NBzSclfPV1I1RBmW5pmVfE4rHdGO57n YwX4sGw8mzjT7+Ls66pHUZO+Hdoji7KpNcWuRFv+Hmc59PqJLJ1/oLWty1c8ryU5Ji fPyBu/sMU18a0i1fpCujWDwsPe0VV5Xh2lorlfjiZ9UGCIvQpP8LtO2+dj9Et+MjOB zkIMGSr/ZODPWwMg4Chxvgh20EGmW2sDgNjW0O573m0mfI4y5VwC9armq2MNgZBj9O IRcTYL5xwVJldItSCAnotBcu6v0UmhKGWek4TR/s7G9Wv8Bc3ZRjdS3nPkSIB2m5TN C7EFAKMabpShQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id F244268F80 for <u-boot-concept@u-boot.org>; Tue, 30 Dec 2025 13:52:19 -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 fAs-5d5asOfQ for <u-boot-concept@u-boot.org>; Tue, 30 Dec 2025 13:52:19 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767127939; bh=vN7vlTY96FwiVbm81UtIX2iGV1PuwrUxh0RfnPiWi/s=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=Eqj+3AF2sliNffKQxPGsvmi7kI4U5lCuu2NBzSclfPV1I1RBmW5pmVfE4rHdGO57n YwX4sGw8mzjT7+Ls66pHUZO+Hdoji7KpNcWuRFv+Hmc59PqJLJ1/oLWty1c8ryU5Ji fPyBu/sMU18a0i1fpCujWDwsPe0VV5Xh2lorlfjiZ9UGCIvQpP8LtO2+dj9Et+MjOB zkIMGSr/ZODPWwMg4Chxvgh20EGmW2sDgNjW0O573m0mfI4y5VwC9armq2MNgZBj9O IRcTYL5xwVJldItSCAnotBcu6v0UmhKGWek4TR/s7G9Wv8Bc3ZRjdS3nPkSIB2m5TN C7EFAKMabpShQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id DF69268F77 for <u-boot-concept@u-boot.org>; Tue, 30 Dec 2025 13:52:19 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767127936; bh=2FG1xb0CEXquX8RTyrwjqJ03TNmPhKG6/zD6HU3FbQ4=; h=From:To:Cc:Subject:Date:From; b=OWTo5KZkg7QMDKj+tER7MOuRaHDRYbIfQARlpkXHkGyArNCEmVWliOXHw7kJP0Onc WKgbEPfG1FhC+ZHJrlrY4Z4EKLQz+NwzV0kR1XxOVhIkPfYboLEbmJRRZYeONhhDE4 La4SNjI3GEHW+dJzwuPBI+17AQOn6V0meTrRvX0NpNEonhtqv05tvgV5CFxIuSx73W RqHr/TfQ+5Y0OvZCliev0t8PrSyw8y2HXwUds77oIlGH4z08+Gdm/07H87XKNLsbcr jH+ZQAhzOk1m7RvOxzLfq+fMr14oVHBUKJrvRY9+EnCzSplJSRLHHHagBUCu2b/NPm 3u/wVBbOjco5w== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id C2EF268F73; Tue, 30 Dec 2025 13:52:16 -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 rxvlIOeKHDgN; Tue, 30 Dec 2025 13:52:16 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767127932; bh=QKxA2ltNmn43Zc0LEBKhfTRRK69HnosEpfHkO9hvvdM=; h=From:To:Cc:Subject:Date:From; b=HYbmJDqn/7GohhpwVxlpt4A0y2XY3QT7lh9gtb1yNgDQ+F+i0wsC8wOJZSRRg4SS3 KeIyXSLvsSjldJlhRfhlYA4WnGeedTNDGTJSTfQ3OAPy26wVAmXuecZ5EZCIjzhhjh ttsDTXP38cFcHzg2XxozAkONLU3fGgN2iC+d+HKG+TVix1/IOyOx/X/GcwUcjWNrL3 p7MrP1pIJ7WtDC77RIVRvt4I/Q/A3AKYtOB5thq/WiJtR2djwlOYMWExlAAirHey7M M9SCUzNWvb8mbMyhD5aTZNDDo4RulfpLMbbh3Qo6LE9SoB6vhT9knNrlGFoaWfgUzs /0AQYFWDbJt8w== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 763DC64C8A; Tue, 30 Dec 2025 13:52:12 -0700 (MST) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Tue, 30 Dec 2025 13:51:37 -0700 Message-ID: <20251230205157.3383926-1-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Message-ID-Hash: 7MNVDFCJ3PU57RTYTSAMGSECVTBA7VAP X-Message-ID-Hash: 7MNVDFCJ3PU57RTYTSAMGSECVTBA7VAP 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/14] ext4l: Linux adaptation patches for ext4 write support 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/7MNVDFCJ3PU57RTYTSAMGSECVTBA7VAP/> 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: Linux adaptation patches for ext4 write support
|
|
Message
Simon Glass
Dec. 30, 2025, 8:51 p.m. UTC
From: Simon Glass <simon.glass@canonical.com>
This series contains adaptations to Linux-imported files needed for
ext4l write support in U-Boot. These changes are separated from the
main ext4l implementation to make it easier to track modifications
to imported code.
The patches include:
- Bit position fixes for REQ_OP and BH_OwnsData to avoid conflicts
- JBD2 journal adaptations for U-Boot's single-threaded environment
- Function exports to allow calling ext4 internals from U-Boot code
- Cache management fixes for multiple mount/unmount cycles
- Compiler warning fixes for Clang compatibility
These changes are minimal modifications to the Linux ext4 and jbd2
code, using #ifdef __UBOOT__ guards where appropriate to ease future
Linux updates.
Simon Glass (14):
linux: ext4l: Fix REQ_OP and BH_OwnsData bit positions
linux: jbd2: Add synchronous commit on transaction stop
linux: ext4l: Export ext4 functions for U-Boot interface
linux: ext4l: Skip orphan handling in U-Boot
linux: fs: Add folio cache to address_space
linux: percpu_counter: Add initialized field
linux: ext4l: Mark journaled metadata buffers dirty for bh_cache_sync
linux: jbd2: Add validation in jbd2_journal_write_metadata_buffer
linux: jbd2: Add jbd2_journal_exit_global for clean shutdown
linux: slab: Convert kmem_cache functions to declarations
linux: ext4l: Mark ext4_groupinfo_slab_names unused
linux: ext4l: Export ext4_commit_super function
linux: ext4l: Make cache init/exit functions reentrant for U-Boot
linux: ext4l: Initialize len in ext4_ext_find_hole
fs/ext4l/block_validity.c | 10 ++++++
fs/ext4l/ext4.h | 9 ++++++
fs/ext4l/ext4_jbd2.c | 8 +++++
fs/ext4l/ext4_uboot.h | 17 +++++++---
fs/ext4l/extents.c | 2 +-
fs/ext4l/extents_status.c | 6 ++++
fs/ext4l/mballoc.c | 15 ++++++++-
fs/ext4l/namei.c | 18 +++++------
fs/ext4l/orphan.c | 9 ++++++
fs/ext4l/super.c | 3 +-
fs/ext4l/support.c | 2 +-
fs/jbd2/journal.c | 57 +++++++++++++++++++++++++++++++++-
fs/jbd2/transaction.c | 18 +++++++++++
include/linux/buffer_head.h | 2 --
include/linux/fs.h | 10 ++++++
include/linux/jbd2.h | 1 +
include/linux/percpu_counter.h | 4 ++-
include/linux/slab.h | 15 ++-------
18 files changed, 172 insertions(+), 34 deletions(-)