From patchwork Mon Jan 19 06:15:13 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1622 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=1768803417; bh=OoLjdiQaIfdJAfXxWr7xNjOY+NySXjZmUbRVa54uABQ=; 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=Kgpb0Qh3KwOdGRMa1SB8p8vnaxY8mUU6wAD67jM5MOrdzonXMHiaOUSf3JE3p/6uo MDFqqsBbWkRkeSQpoBy4lYz8NIdB6ZKEURZGh9wz5FD/gKFED0ad3gSN5zwU2Io8hg fU3KTt5k18/S+ahjnWzAhnVALOwqmO6K4k4gKeCzSkl4uI06+pWXPu8jIoCf5v1S91 n4xW/6l1G+kLAI0IjDYP0mKlLgai5dDep+RQbKU5QmJoI/0ITww5ulwSxf1Vb0sHMm Spr4JXv2xuDy74oY9e/IVWIdpWrPkCClyYcQW1FksHiCdHmQO4spM5cYfRj+QdEQgx vXfsyarBW4zSg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 86676694DD for ; Sun, 18 Jan 2026 23:16:57 -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 UCT0BUAIsHh0 for ; Sun, 18 Jan 2026 23:16:57 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768803417; bh=OoLjdiQaIfdJAfXxWr7xNjOY+NySXjZmUbRVa54uABQ=; 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=Kgpb0Qh3KwOdGRMa1SB8p8vnaxY8mUU6wAD67jM5MOrdzonXMHiaOUSf3JE3p/6uo MDFqqsBbWkRkeSQpoBy4lYz8NIdB6ZKEURZGh9wz5FD/gKFED0ad3gSN5zwU2Io8hg fU3KTt5k18/S+ahjnWzAhnVALOwqmO6K4k4gKeCzSkl4uI06+pWXPu8jIoCf5v1S91 n4xW/6l1G+kLAI0IjDYP0mKlLgai5dDep+RQbKU5QmJoI/0ITww5ulwSxf1Vb0sHMm Spr4JXv2xuDy74oY9e/IVWIdpWrPkCClyYcQW1FksHiCdHmQO4spM5cYfRj+QdEQgx vXfsyarBW4zSg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 756B6694CE for ; Sun, 18 Jan 2026 23:16:57 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768803415; bh=LFaFpTMzxxaa5SCtfSWMLtER8poHSiCEihvnHLfgz5A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hqYUpAUKzX6oqPBp4KuxEiXGe9plsl/pB66YwE6zPdu1e3I0Lg4Pap+5VdN4X/owT FdOBFy/aUN3seuffhidtvNSW4XOOhycT7Ex3XMOY+962otGe6/peqvyrrg3XNUZ1I4 eWeqB+QA2nRQX1+Y0UMZZufKRN6splquUq7l19BDdVko+yL4URS0+jILcWMVcztm3i Xk3fOWU6zQQUAekA9v01EBFLrUxknjnPxaSWOYdLhI3vyom74UwwJmJAyC4b1z17Y9 NLf5y4tB8oSHEVE5ZGstYZa5LdfzNT7y5+AQIPnVE8mDkdBbTsXOS9730WOz5CBG99 SAvIPvnxF6Yuw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 58AFA693AE; Sun, 18 Jan 2026 23:16:55 -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 JbhcgAXspsGX; Sun, 18 Jan 2026 23:16:55 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768803411; bh=rl8kOgzBsQpykJGSnET6xIAljjBLh0T5CGgKLI6IS8M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Y1hQTDkglB1qDJCf9/kHYlXK20v0jX/ovA9AaRxyRkTLoCXFvBNufgtJxzsIfguSY pNPABCU1l95v6qCS/ankTlrf0XBePwTbmXYDJmJJzJLfH59OIy48GabMoMfcSbb2mN NteJDDhUmqO7kTZNoTOhe08T3sm3tr8koqFk1ByU8Ae5n11k1ugwCIto1Q4+GqktZd +g0qd5hRfizneWeOq5uG51VkonxEHEEMRb+1ZR838Ub/H8BxKO0PgVvGKcB6YuoPY/ 5AmewsMDjmlJWPh0bUv+ubrmGZxSbLR7Bkn/CSkTMaOXr7s1aazq9eedkMV+p2scgE 5lI9xRm5rN4JQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 0F163694C0; Sun, 18 Jan 2026 23:16:51 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Sun, 18 Jan 2026 23:15:13 -0700 Message-ID: <20260119061529.3383191-16-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260119061529.3383191-1-sjg@u-boot.org> References: <20260119061529.3383191-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: BH7CM2S4KCYT32WV4ZOQZD6N4PDYHKJK X-Message-ID-Hash: BH7CM2S4KCYT32WV4ZOQZD6N4PDYHKJK 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 15/23] ext4l: Move QFMT_VFS_* constants to quotaops.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 the quota format identifiers (QFMT_VFS_OLD, QFMT_VFS_V0, QFMT_VFS_V1) to include/linux/quotaops.h with other quota definitions. This consolidates quota-related constants in one location. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- fs/ext4l/ext4_uboot.h | 5 +---- include/linux/quotaops.h | 5 +++++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index 03534115e71..d11981a858a 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -1092,10 +1092,7 @@ static inline const char *simple_get_link(struct dentry *dentry, * Additional stubs for super.c */ -/* Quota format constants */ -#define QFMT_VFS_OLD 1 -#define QFMT_VFS_V0 2 -#define QFMT_VFS_V1 4 +/* QFMT_VFS_* quota format constants are in linux/quotaops.h */ /* Buffer read sync */ static inline void end_buffer_read_sync(struct buffer_head *bh, int uptodate) diff --git a/include/linux/quotaops.h b/include/linux/quotaops.h index b32e7b7ab70..b96e33887b8 100644 --- a/include/linux/quotaops.h +++ b/include/linux/quotaops.h @@ -61,6 +61,11 @@ struct super_block; #define dquot_writeback_dquots(sb, type) do { (void)(sb); (void)(type); } while (0) #define dquot_file_open(inode, file) ({ (void)(inode); (void)(file); 0; }) +/* Quota format identifiers */ +#define QFMT_VFS_OLD 1 /* Original quota format */ +#define QFMT_VFS_V0 2 /* 32-bit UID/GID quota */ +#define QFMT_VFS_V1 4 /* 32-bit UID/GID with grace period */ + /* Quota status queries */ #define sb_has_quota_usage_enabled(sb, type) 0 #define sb_has_quota_limits_enabled(sb, type) 0