From patchwork Mon Jan 19 06:15:14 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1623 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=1768803421; bh=eX0Zcz8KK2EjKZwy4nzdZ9xcw8J6Dvla3KJT5hTyyqY=; 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=k18Y6Zs9I7K4rMt/KcnQ/4gxGrc/Pn9PEG+RyNY3YUIbsc4vMApLkAaJztYK9MH0x RddhGTd7ty9LeBNSroCQb2yA79ghNjCN7yRlivfEYpMxDjF59vNbHma+cY+4xnxdqK s+0ftKSdv1taWpWVj4O9riMwu7M4B0EthJKl3ULc+XTdzLXwdo32QxEKvkGcWoyoou B+NN7Lx60bX7jaK/5wLUo/Ype9Iua39r2gMrI4u1oOFMwk5teJNLJ5ykDAxrJbvNVD Q81aljoeAIQ1nCyWRCSm7L38rSgO7RMldRMjSM0Hnjua893LbHOjs82gjokYTmbzAk KZbV+HPzh1Qfg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 09677694DD for ; Sun, 18 Jan 2026 23:17:01 -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 d0aytzH8VL6a for ; Sun, 18 Jan 2026 23:17:00 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768803420; bh=eX0Zcz8KK2EjKZwy4nzdZ9xcw8J6Dvla3KJT5hTyyqY=; 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=c8DH6Rrc72zbF5utW6bOLwWfKX7rLzBcljKeeUOrAp1U/8WkE6Ya0lUzGSHG0hc4Q LakyUVj7WKMOvb1hZNAmG2wqT7UIJJTmD1DjYi5H03SpR/5JUfrXDNKzrqEKZNMRE6 EVOzbdALD0uom4l1VjptnqBMlS8iJg/u/bbWIe2iB9AjXjtzbRXWtDMmmRk++wGV2Q 1kxU1348W63+kJ+sZ8rY2M0535LbHHJnr9JjVDDXm1OTjL9AeZ73ahiLhs+W+wR1Qr kvsnIQ5MvxLLgEZDnJoCup60AiZMs6d0scWavUWhswMNMifC2nQ3U7+iQ7pBInH4y1 njebKXgWy7+ag== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id EBDCC694CE for ; Sun, 18 Jan 2026 23:17:00 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768803419; bh=CvRu6PDDlIhfHvwqgus38hiaFcGYzzJ//EkNugbA5Co=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GPhP+DAiAM7LGQyTnRmy5ePhwIVWmq30dteFJiMdb0ttttjvHSSFCmFkh0jK3shC0 C4Gp1eibLBt60NAF/R6B7qhHhdNjr86xCPUUC2n2U78FggCobnVyAQ+9V84PCEmjlz THYDdc5CLVimxarOinDjfa14udzGXmoXB3OasbJrfx2426i6fq6erWqxIqZsLUgLk0 3Z+K0S8+8l8sMU8WcPKi1YlHcaeXNKPI0VvUydKvkrRSlAbEmZ1H3URxPqIreaB/cJ 0DtaJ/9o18wEhh+9j3cdX5BqNaLfhZ3Ag44WEnoC74eaYX8COtDyv1UQpobpJFoBMe WuVqO8LvEMH8Q== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id EE3DA693AE; Sun, 18 Jan 2026 23:16:59 -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 04A2S0sT7xiC; Sun, 18 Jan 2026 23:16:59 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768803415; bh=iwfrNEHbGHoNM2REHtQlkYXb5+HOmBBlkNjlFXxIJPo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Zr7DvvcJdnWqazrp45tPQZztojdIj2OSb1K2nhXf/Hn4tXbuHhkSZm9XqfMOKDeye KTiP6S6RYn+gLGFM6IduM7tAVBTN38m8tQlz9bYP4GNgOrZALv+yfzkiGat1VUaznl 0iZYCEJorjDLo59Az8AHM39KHaDuPqydGvUkHKUEUqIRCfy4i510jNPrv/YoKzBGQy WUq4yoDAyzOSeh2plru2+bAkCO6lvl8qgJkxSOU4kbtHgbXNxyQCEOdVqkthc+L84o cOqAdKy4uNeHx8UbS2TbSR8ODe2YL8UdsEFdnBssynGXIQqVJSMSFyQ7WEmduDEpHD CCfDqK8o9IVjQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 9E8FA694C0; Sun, 18 Jan 2026 23:16:55 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Sun, 18 Jan 2026 23:15:14 -0700 Message-ID: <20260119061529.3383191-17-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: KP2IC7IEPAZSSGTQXA3CM77LO2LML2P5 X-Message-ID-Hash: KP2IC7IEPAZSSGTQXA3CM77LO2LML2P5 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 16/23] ext4l: Move REQ_META, REQ_PRIO, REQ_RAHEAD to blk_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 the remaining block I/O request flags to include/linux/blk_types.h with other request flags, matching Linux kernel organisation. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- fs/ext4l/ext4_uboot.h | 5 +---- include/linux/blk_types.h | 3 +++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index d11981a858a..931889f6046 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -125,10 +125,7 @@ #define ZERO_OR_NULL_PTR(x) ((unsigned long)(x) <= PAGE_SIZE) #define data_race(expr) (expr) -/* Block I/O request flags - stubs */ -#define REQ_META 0 -#define REQ_PRIO 0 -#define REQ_RAHEAD 0 +/* REQ_META, REQ_PRIO, REQ_RAHEAD are in linux/blk_types.h */ /* GFP flags - stubs */ #define __GFP_MOVABLE 0 diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h index ccbee4b9876..a842300ae64 100644 --- a/include/linux/blk_types.h +++ b/include/linux/blk_types.h @@ -25,5 +25,8 @@ typedef __u32 __bitwise blk_opf_t; #define REQ_FUA (1 << 9) /* Forced unit access */ #define REQ_PREFLUSH (1 << 10) /* Request cache flush */ #define REQ_IDLE (1 << 11) /* Anticipate more I/O */ +#define REQ_META (1 << 12) /* Metadata I/O request */ +#define REQ_PRIO (1 << 13) /* Boost priority */ +#define REQ_RAHEAD (1 << 14) /* Read ahead */ #endif /* _LINUX_BLK_TYPES_H */