[Concept,17/17] ext4l: Move superblock write stubs to linux/fs/super_types.h
Commit Message
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(-)
@@ -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 */
@@ -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 */