| Message ID | 20260121220857.2137568-26-sjg@u-boot.org |
|---|---|
| State | New |
| 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=1769033451; bh=kM+SW5WGo14g+qu5iHISHwkS2xxIudydqzRRLXT59Co=; 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=DBiVhX06fDs6jecjP0xKvEyhgKJqAYt2As7nGmn0AcHUcEAL7o2wYxoz6ixT9HA2x RGUHy5kSzNm8SEjYK0KvFdspLhLdllFQzJ0QrALStfP/oWX1F3/UgL80H2W5vwvBKW KegElD143pZfZMau3nRMtrACjZn1SWTHM71ge7FoFAk/KZhOj4uPXW5QdXPj6Ql3/V L5Y4aX2vennQFIfPU9SAKqAlDtQ55iwKSjv53CHvN22fMd63l0eJCGJMiBd64gJ2V9 noo8KjTGrdW4BjhRnlMF9qnDgtBEpwJKW9Sr8dxMJglLmC58m7tlUzkDLTZ+i3XlC0 m0MH84EGICTRA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id BE0E5695F7 for <u-boot-concept@u-boot.org>; Wed, 21 Jan 2026 15:10:51 -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 VKA8SptqfXR5 for <u-boot-concept@u-boot.org>; Wed, 21 Jan 2026 15:10:51 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769033450; bh=kM+SW5WGo14g+qu5iHISHwkS2xxIudydqzRRLXT59Co=; 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=ImaFzIwzbBK4XaxoPCfZe9U+9GlvaIOIl+SSSqVVAw93MnouIJzFnwjtV2bHxT/uS gLGxrIuxSeeDCbFX7seEavMd94Pxh/TSiCBYfRwwIzfozOqSoHYfj2+taaElKDaBeT wkS1IOEgxtGy9wgKT7Ab3ezoo03HczWwI8bGjiGKsJnMQ0u1sXl7L3YMs5kEnCUx86 2cv1bcewsZsie/5HIlZeFvk2UGReyVbYXD0QeOjyz8Cgcwh2CxsM2Kw6aA+KsuFfYn nHlPc429aVMT6w6xHB/FPan4iM+mRpHXA+gcwejVDpURx/Jm0qvV5LJYFeZDy3wQBf F6T/hi8I8tpfA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id B2292695FB for <u-boot-concept@u-boot.org>; Wed, 21 Jan 2026 15:10:50 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769033448; bh=GlFcRKiJT0l1Lmdss32RUwq0LQ+0EPB1L0JmFT6T70w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bqBJSADxDeZVqYjr2adhpIzyXpf1MCQlA7I71Ur7wq5O03W12PGfR66UbR9Ig9xHH 1mlLeFG57o+/ES83DSI5dkLORTqIqBbcSXIwadaOqAjt2Tx+qttEP1/hPh1BTsoSvp rDb5Op8/LKlVZ350fyEXDSXolQGN+R0w9LU3nMNXQ4MCDPasxlhHENVPTV0p75qzTc N5u2hLgsMLV0QU8bWyjTFCjKA1Luu+GLFlOuQnFYm5pkRTp+3fEuKjKE0BDb3PJyyp i5fT6Z984R6615RidoIQfVJQIScZpNxeG6ylfnotm0PEwxt5VQB0ek62slJVE93IMB kpkp/bongYbgA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 96F8D695FB; Wed, 21 Jan 2026 15:10:48 -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 bUC8-MrSa-3H; Wed, 21 Jan 2026 15:10:48 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1769033448; bh=Tw3qnn5p0K6eIbuUjxoEZKQTpra8mCvGDUs8t1WGMbk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SOezGcdB+sdUKLikXbuoqYUdYRSBtjCWo7R96BRSXhgiG4mgxQ5hugx1mjHKXooHO 9IXmqdMXeKI7n1PkPR87Vv/35YEIHcMCioTV+iIYfzzeqU+73/EmqsbOckXhrFOUmb 9vQjXdJqBP+MoRMkA28zFDDOKZbIMbdGd0pg1taL5d32SXRALSU5nyEIJHv0xK9Gss 5jlbRK4Rvc4hoIEiWGN7MTsRrsEufDHZWsXumzWKQmi9BJlHzNuVAXXtANxb53uLlO yyyWe6PGGion6HPwZ9FwyMVxnDtlSd3e6u357hGnCqUI8feHxRblbk6+ZbGIjqJPWK 0vesWy17mLPKw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 231E2695F7; Wed, 21 Jan 2026 15:10:48 -0700 (MST) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Wed, 21 Jan 2026 15:08:38 -0700 Message-ID: <20260121220857.2137568-26-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260121220857.2137568-1-sjg@u-boot.org> References: <20260121220857.2137568-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: ALHNKPTWHJKM45QYWAVSRYNAREJRVRIS X-Message-ID-Hash: ALHNKPTWHJKM45QYWAVSRYNAREJRVRIS 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>, "Claude Opus 4 . 5" <noreply@anthropic.com> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 25/33] ext4l: Move finish_open_simple() and ihold() to linux/fs.h 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/ALHNKPTWHJKM45QYWAVSRYNAREJRVRIS/> 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 |
Reorganise ext4l compatibility stubs
|
|
Commit Message
Simon Glass
Jan. 21, 2026, 10:08 p.m. UTC
From: Simon Glass <simon.glass@canonical.com> Move these filesystem helpers to linux/fs.h where related functions reside. This reduces ext4_uboot.h from 435 to 431 lines. Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com> --- fs/ext4l/ext4_uboot.h | 4 ---- include/linux/fs.h | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index 9ddd88d78aa..8d1aa0e504e 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -196,10 +196,6 @@ struct path; /* hash_64 - use linux/hash.h */ #include <linux/hash.h> -/* Dentry operations are now in linux/dcache.h */ -#define finish_open_simple(f, e) (e) -#define ihold(i) do { (void)(i); } while (0) - #include <linux/path.h> #include <linux/dax.h> diff --git a/include/linux/fs.h b/include/linux/fs.h index 0f3e44214c5..5b865715d51 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -570,12 +570,14 @@ int inode_generic_drop(struct inode *inode); struct inode *new_inode(struct super_block *sb); struct inode *iget_locked(struct super_block *sb, unsigned long ino); void iput(struct inode *inode); +#define ihold(i) do { (void)(i); } while (0) /* Block mapping - implemented in ext4l/stub.c */ int bmap(struct inode *inode, sector_t *block); /* Simple filesystem helpers */ #define simple_open(i, f) ({ (void)(i); (void)(f); 0; }) +#define finish_open_simple(f, e) (e) /* simple_get_link - for fast symlinks stored in inode */ struct delayed_call;