From: Simon Glass <simon.glass@canonical.com> Move the remaining block I/O request flags (REQ_IDLE, REQ_PREFLUSH) to include/linux/blk_types.h with other request flags. This consolidates all REQ_* flags in one location, matching Linux kernel organisation. Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com> --- fs/ext4l/ext4_uboot.h | 6 +----- include/linux/blk_types.h | 2 ++ 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index 1622fec4e64..03534115e71 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -1557,11 +1557,7 @@ bool __folio_start_writeback(struct folio *folio, bool keep_write); /* Dentry name snapshot operations are now in linux/dcache.h */ /* lockdep_assert_not_held is in linux/lockdep.h */ - -/* Request flags for block I/O */ -#define REQ_IDLE 0 -#define REQ_PREFLUSH 0 - +/* REQ_IDLE, REQ_PREFLUSH are in linux/blk_types.h */ /* wake_up_bit is now in linux/wait_bit.h */ /* d_alloc, d_drop are now in linux/dcache.h */ diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h index 9d770f4bd6e..ccbee4b9876 100644 --- a/include/linux/blk_types.h +++ b/include/linux/blk_types.h @@ -23,5 +23,7 @@ typedef __u32 __bitwise blk_opf_t; /* Block request flags (bits 8+) */ #define REQ_SYNC (1 << 8) /* Synchronous I/O */ #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 */ #endif /* _LINUX_BLK_TYPES_H */ -- 2.43.0