From: Baokun Li Date: Wed, 22 Jan 2025 11:41:24 +0000 (+0800) Subject: ext4: convert EXT4_FLAGS_* defines to enum X-Git-Tag: io_uring-6.15-20250403~67^2~39 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=99708f8a9d30081a71638d6f4e216350a4340cc3;p=linux-block.git ext4: convert EXT4_FLAGS_* defines to enum Do away with the defines and use an enum as it's cleaner. Signed-off-by: Baokun Li Reviewed-by: Jan Kara Reviewed-by: Zhang Yi Link: https://patch.msgid.link/20250122114130.229709-2-libaokun@huaweicloud.com Signed-off-by: Theodore Ts'o --- diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 8c5e82433909..8f6bfa25fa6f 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h @@ -2235,9 +2235,11 @@ extern int ext4_feature_set_ok(struct super_block *sb, int readonly); /* * Superblock flags */ -#define EXT4_FLAGS_RESIZING 0 -#define EXT4_FLAGS_SHUTDOWN 1 -#define EXT4_FLAGS_BDEV_IS_DAX 2 +enum { + EXT4_FLAGS_RESIZING, /* Avoid superblock update and resize race */ + EXT4_FLAGS_SHUTDOWN, /* Prevent access to the file system */ + EXT4_FLAGS_BDEV_IS_DAX, /* Current block device support DAX */ +}; static inline int ext4_forced_shutdown(struct super_block *sb) {