From patchwork Tue Jan 20 23:43:37 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1726 Return-Path: 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=1768952729; bh=dt0Sesj2eOJonjeJkG/W9GGdh7KCaiDxnGd+jdO+zNE=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=r7+JHhZ6BNDKVYBGj1diZabo5kGbA/kbnz+HDGZEqVnYWfDp6jmXEVsfk6tnCQAI7 4lm3dFws+R/2R1EiC3Ukexb/ZliZsdHKY3tBX69WU6Cvz8npv/KXilmPJ9CZVtYRh1 XACuRrjiC7YwijsSxv9py1pIy/vUtdJBN9cD2KeWeo5NHVUgGJYYlyRv5pWah+aVVt NRK6bfdVSO5vqktpJgwKEsRpKRK2QJM1+Z8SUwI+BAsdTN9MkqlO96PWrNv1Kasjgk DOlXL3jw0HQXcnVcHluagIkWvDVP9xj1u1i/7Q7E42FrD6qkvE+uwZgnIAVDHYUDNt Qd6s1XnikijKw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 61809695B7 for ; Tue, 20 Jan 2026 16:45:29 -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 UfGLGJPT2cwk for ; Tue, 20 Jan 2026 16:45:29 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768952728; bh=dt0Sesj2eOJonjeJkG/W9GGdh7KCaiDxnGd+jdO+zNE=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=CnkeSPbPdQonXsNfh0b4o9z8ZS5GiNnouNBqbXvq9aF0pmEY9zuYsrjhvAvP1BwAx av4jwDlst4GQnAhUHrcf5w+jya7o/gyzAxzofTAijjmXHRDP5rVbdx1gbC6utC/Gv2 UV4jNCbFhottosfs1u4+bMC+SlU9N4JgIV0VxP3AoiZ+oYxpDCD+OQNEA4aoNIzbQh oRn66/CPOxpFtb9Nrj3VkVhcDsJUGMrlBgB+ipuA7U5cffVcJ4mvQM8BjEkXTtqN0p V6lPHOTFeOB2q7eTnzVUmnFAj/CXgcDs1UpjCjc4PUFnpSvXPyQkwD2Wt/3OQIFxoV aCaHa37KhIGDw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id D092C69597 for ; Tue, 20 Jan 2026 16:45:28 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768952727; bh=CYU3GxAgIq1Uq5sab53HX1H3c3jlf2MlmOzE/O67HNM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gXWMcwbDayfIope5tfvYjwEJVYFPdNl1pxc5jWkhCdO6C2kxN6jo/EQFynk/B7p28 /pjjmkuvXQy9NCcexljFj7xlRgShSZOm1w3J68i4Nrd5g02doCdR2+tVO51qmJzTU7 Wbuiq1zTntA6+MAiW5rvUO9hJuW7mHpaWFZRZ9LwkL+Chs1nOR38KQZrT0bIwvOFXX n5T7Gr53iAVdeccg+biNMDcMPVV0/KzyL7HBYw+OY71smPWyAWsjs7UeibEWpRN2Ft aCqwTzEVZAsbp/OzTYmOjWahuskWhat1b5wupN6XqiYgwuCN7h4N5XXw38uiiQugzk 8NwOqVJUWxU9w== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 132DC695B5; Tue, 20 Jan 2026 16:45:27 -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 AwOs6_GjyiGL; Tue, 20 Jan 2026 16:45:27 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768952724; bh=zbfSG3/YCyDYmSFMUnx77FgqYFZeCgazDBnTAK0gxq0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H15LiPQ7lPxJ/b6pFW1vphR0FkG3iiHxI55aMLxbNsFMm4I6YuR2uIFBpDeAEn2LT bX6yWXSfyzrZ6SoO/pTjzVkTbrH72KLtuEWuKLAKtMKeIy2G3+/NTV5KQ28mr073js 3a1rkO91NfaOUijCEuQkYmAxUOaRz+/6JpFzWoNs1sZg+hZCR9hs5JAhjkote9X7PS OhBfQMJh3dY2ZHLkTkvpcFZ6a2cSZzB94vyYL7KKIXRJIAqz/RbdryFqGdirXY6nWg 0zjNK1C6YvKByM0wC+8ZqHcpgdYNaOEPqzvbBnecMo9VCbZa2mUZAQh5msQ4XARxiy Pz4FErtRxDvJA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 80F4C695A6; Tue, 20 Jan 2026 16:45:24 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Tue, 20 Jan 2026 16:43:37 -0700 Message-ID: <20260120234344.495605-18-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260120234344.495605-1-sjg@u-boot.org> References: <20260120234344.495605-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: JRRM6BCQ7CICZVX5T47MRNV3MHXWXY3W X-Message-ID-Hash: JRRM6BCQ7CICZVX5T47MRNV3MHXWXY3W 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 , "Claude Opus 4 . 5" X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 17/17] ext4l: Move superblock write stubs to linux/fs/super_types.h List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass Move sb_start_write(), sb_end_write(), and sb_start_write_trylock() to linux/fs/super_types.h alongside the other superblock definitions. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- fs/ext4l/ext4_uboot.h | 5 +---- include/linux/fs/super_types.h | 7 +++++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index 7d1704945a3..2f73325e521 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -1086,10 +1086,7 @@ void *kvzalloc(size_t size, gfp_t flags); /* Time operations - ktime_get_ns is in linux/ktime.h */ /* nsecs_to_jiffies is in linux/jiffies.h */ -/* Superblock write operations */ -#define sb_start_write_trylock(sb) ({ (void)(sb); 1; }) -#define sb_start_write(sb) do { } while (0) -#define sb_end_write(sb) do { } while (0) +/* sb_start_write, sb_end_write are in linux/fs/super_types.h */ /* schedule_timeout_interruptible is in linux/sched.h */ diff --git a/include/linux/fs/super_types.h b/include/linux/fs/super_types.h index 67e02a04bfb..c575d268c43 100644 --- a/include/linux/fs/super_types.h +++ b/include/linux/fs/super_types.h @@ -91,4 +91,11 @@ static inline bool sb_rdonly(const struct super_block *sb) return sb->s_flags & SB_RDONLY; } +/* + * Superblock write operations - U-Boot is single-threaded, no locking needed + */ +#define sb_start_write(sb) do { (void)(sb); } while (0) +#define sb_end_write(sb) do { (void)(sb); } while (0) +#define sb_start_write_trylock(sb) ({ (void)(sb); 1; }) + #endif /* _LINUX_FS_SUPER_TYPES_H */