From: Simon Glass <simon.glass@canonical.com> Move sb_start_write(), sb_end_write(), and sb_start_write_trylock() to linux/fs/super_types.h alongside the other superblock definitions. Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com> --- fs/ext4l/ext4_uboot.h | 5 +---- include/linux/fs/super_types.h | 7 +++++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index 7d1704945a3..2f73325e521 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -1086,10 +1086,7 @@ void *kvzalloc(size_t size, gfp_t flags); /* Time operations - ktime_get_ns is in linux/ktime.h */ /* nsecs_to_jiffies is in linux/jiffies.h */ -/* Superblock write operations */ -#define sb_start_write_trylock(sb) ({ (void)(sb); 1; }) -#define sb_start_write(sb) do { } while (0) -#define sb_end_write(sb) do { } while (0) +/* sb_start_write, sb_end_write are in linux/fs/super_types.h */ /* schedule_timeout_interruptible is in linux/sched.h */ diff --git a/include/linux/fs/super_types.h b/include/linux/fs/super_types.h index 67e02a04bfb..c575d268c43 100644 --- a/include/linux/fs/super_types.h +++ b/include/linux/fs/super_types.h @@ -91,4 +91,11 @@ static inline bool sb_rdonly(const struct super_block *sb) return sb->s_flags & SB_RDONLY; } +/* + * Superblock write operations - U-Boot is single-threaded, no locking needed + */ +#define sb_start_write(sb) do { (void)(sb); } while (0) +#define sb_end_write(sb) do { (void)(sb); } while (0) +#define sb_start_write_trylock(sb) ({ (void)(sb); 1; }) + #endif /* _LINUX_FS_SUPER_TYPES_H */ -- 2.43.0