[Concept,03/17] ext4l: Move inode state bits to linux/fs.h
Commit Message
From: Simon Glass <simon.glass@canonical.com>
Move the inode state bit definitions (I_NEW, I_FREEING, I_DIRTY_DATASYNC,
I_DIRTY_TIME) to linux/fs.h where they belong in the Linux kernel header
hierarchy.
Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
---
fs/ext4l/ext4_uboot.h | 10 ++--------
include/linux/fs.h | 6 ++++++
2 files changed, 8 insertions(+), 8 deletions(-)
@@ -410,11 +410,7 @@ static inline int bdev_read_only(struct block_device *bdev)
/* kuid_t and kgid_t - from linux/cred.h */
#include <linux/cred.h>
-/* Inode state bits */
-#define I_NEW (1 << 0)
-#define I_FREEING (1 << 1)
-#define I_DIRTY_DATASYNC (1 << 2)
-
+/* Inode state bits (I_NEW, I_FREEING, etc.) are in linux/fs.h */
/* S_SYNC, S_NOATIME, etc. inode flags are in linux/fs.h */
/* S_IRWXUGO is in linux/fs.h */
@@ -423,9 +419,7 @@ static inline int bdev_read_only(struct block_device *bdev)
#define WHITEOUT_MODE 0
/* RENAME_* flags are in linux/fs.h */
-
-/* Inode dirty state flags */
-#define I_DIRTY_TIME (1 << 3)
+/* I_DIRTY_TIME is in linux/fs.h */
/* SB_LAZYTIME is in linux/fs.h */
/* ATTR_* iattr valid flags are in linux/fs.h */
@@ -311,6 +311,12 @@ enum {
/* is_bad_inode - check if inode is marked bad (always false in U-Boot) */
#define is_bad_inode(inode) (0)
+/* Inode state bits for i_state field */
+#define I_NEW (1 << 0)
+#define I_FREEING (1 << 1)
+#define I_DIRTY_DATASYNC (1 << 2)
+#define I_DIRTY_TIME (1 << 3)
+
/**
* struct fstrim_range - fstrim ioctl argument
* @start: first byte to trim