| Message ID | 20260114225635.3407989-25-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=1768431517; bh=cq7Y+rH51pvwNBUyWOtBU2HqZFcZCfay74TzPtGe06U=; 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=ExC6hTP563bMVddhf4P06A7RTzcXuQTAT2Q7mQVOKiuiUfi254hkTdM7W6KvFgTSJ JAjMhwzECJRvJdMRVVrDWZbSV3Fnf6Jdr1M05vT//d09kE1AkwZz51U0Y10KZoBX6A I7PASQJNLN2EIcPal46oHTuyGdkreAZ5MAnG27akwYTZ6HqqZaO+7BJQJ8Z+5583no 3yfzew8QgISB0eCs/R4HgPbYd7CESUppDhlDMgwkXeB3AwzWrUAKsrRzlr9CZJdPok eR1VXEEiry42AOHq7Svuj8yL0sU/SB6ubbE15DkmdcG/DMfGjp9J4mA3y/RnL5BZzf U0Q72AzDaWN+g== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 5BB9A6913F for <u-boot-concept@u-boot.org>; Wed, 14 Jan 2026 15:58:37 -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 a0R31mrXGnrC for <u-boot-concept@u-boot.org>; Wed, 14 Jan 2026 15:58:37 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768431517; bh=cq7Y+rH51pvwNBUyWOtBU2HqZFcZCfay74TzPtGe06U=; 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=ExC6hTP563bMVddhf4P06A7RTzcXuQTAT2Q7mQVOKiuiUfi254hkTdM7W6KvFgTSJ JAjMhwzECJRvJdMRVVrDWZbSV3Fnf6Jdr1M05vT//d09kE1AkwZz51U0Y10KZoBX6A I7PASQJNLN2EIcPal46oHTuyGdkreAZ5MAnG27akwYTZ6HqqZaO+7BJQJ8Z+5583no 3yfzew8QgISB0eCs/R4HgPbYd7CESUppDhlDMgwkXeB3AwzWrUAKsrRzlr9CZJdPok eR1VXEEiry42AOHq7Svuj8yL0sU/SB6ubbE15DkmdcG/DMfGjp9J4mA3y/RnL5BZzf U0Q72AzDaWN+g== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 47BF06934D for <u-boot-concept@u-boot.org>; Wed, 14 Jan 2026 15:58:37 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768431515; bh=sEdS9/AgoHuhfLdx3W3xA58f+aYF24SxFu3qXPVmH7Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h5P52s1Nea91EXncJFL0U+rHUN//X8e+/gYXbUNVx+IJjqD9yr3inIwvZYKCAGan1 szZ99gdccO3zR4nVHzJhTljGIE2Q9A3eKk3nTnG8c8NbZb5U4WNe5CUx2vtefVj3kC NhcWGf2g/eKyu7nDU1X66B/3aLjkH3U3XIDf+F3VJy7+b6AfF3TbDtXK5SG/A/8YW2 mk9tjy2lTQhsH1OcacSaWsXvn/rYMwzxgdhfT5Xd9zu8roBZJ08dx4SfFna6XhNVwx pDaMP9nZ9ExOfBPbip+p76C0GUJ6vwKVDoDJSLu1SeqCW+GJTx2Zuvi97VaZtzc1O9 4BSi9Z/Mj2trw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 69E706913F; Wed, 14 Jan 2026 15:58:35 -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 Zk76Gfs1Cxlv; Wed, 14 Jan 2026 15:58:35 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768431511; bh=o4Ptv2/oXBtvAptov+sOM+SCrFBkInV2453yiBTYytI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Wpvwil7xqjc7nnHLf4xtrDJiQXFWTk9IL9tRgV2Vmpef80ZvISPdCs5rbEDnOGjGO Kl1G0ddBFOr3XQou5ucpIq5SmK3c6HUcO5TYTwzca5rUgUCAPcGCkXitmqRdDVHV6u jNyJWhMIm1Hq0zUiKUigsTvNCOkS0bPpzdG4bUDw+wvPH+T9b+QegP/3rhgPz3D5wQ UM0fxaip93EvfWVitndw7OM61MGToLh0RKoCiMl+oVSjxC4s7qzTz9uM3V72oTcezX IMzN0VVXTSYwEpeW//n1oPv6CLIUnwEhVQPqqwjYrg2WhszON/2H9vdaUnw3RdNDc+ zVyhjKQcJtqvg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 1AF9D692EF; Wed, 14 Jan 2026 15:58:31 -0700 (MST) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Wed, 14 Jan 2026 15:56:14 -0700 Message-ID: <20260114225635.3407989-25-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260114225635.3407989-1-sjg@u-boot.org> References: <20260114225635.3407989-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: L7NOHG5H7MDGSJYUCCAGKTTO5UFLQHWQ X-Message-ID-Hash: L7NOHG5H7MDGSJYUCCAGKTTO5UFLQHWQ 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 24/34] ext4l: Move FMODE hash flags 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/L7NOHG5H7MDGSJYUCCAGKTTO5UFLQHWQ/> 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: Clean up ext4_uboot.h by moving definitions to standard headers
|
|
Commit Message
Simon Glass
Jan. 14, 2026, 10:56 p.m. UTC
From: Simon Glass <simon.glass@canonical.com> Move FMODE_32BITHASH and FMODE_64BITHASH flags from ext4_uboot.h to linux/fs.h where they belong alongside other file mode flags. 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 | 4 ++++ 2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index 7b90276b2bc..4b342089489 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -173,9 +173,7 @@ typedef unsigned long pgoff_t; #define PAGE_SHIFT 12 #endif -/* File mode flags */ -#define FMODE_32BITHASH 0x00000001 -#define FMODE_64BITHASH 0x00000002 +/* FMODE_32BITHASH, FMODE_64BITHASH are in linux/fs.h */ /* struct file is defined in linux/fs.h */ diff --git a/include/linux/fs.h b/include/linux/fs.h index 241711eded1..049033c0cd7 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -36,6 +36,10 @@ typedef unsigned int fmode_t; #define FMODE_CAN_ODIRECT ((__force fmode_t)(1 << 21)) #define FMODE_CAN_ATOMIC_WRITE ((__force fmode_t)(1 << 22)) +/* Directory file mode flags - use low bits for hash mode */ +#define FMODE_32BITHASH ((__force fmode_t)0x00000001) +#define FMODE_64BITHASH ((__force fmode_t)0x00000002) + /* Seek constants */ #ifndef SEEK_HOLE #define SEEK_HOLE 4