Skip to content

Commit 99708f8

Browse files
LiBaokun96tytso
authored andcommitted
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 <[email protected]> Reviewed-by: Jan Kara <[email protected]> Reviewed-by: Zhang Yi <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
1 parent bd29881 commit 99708f8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

fs/ext4/ext4.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2235,9 +2235,11 @@ extern int ext4_feature_set_ok(struct super_block *sb, int readonly);
22352235
/*
22362236
* Superblock flags
22372237
*/
2238-
#define EXT4_FLAGS_RESIZING 0
2239-
#define EXT4_FLAGS_SHUTDOWN 1
2240-
#define EXT4_FLAGS_BDEV_IS_DAX 2
2238+
enum {
2239+
EXT4_FLAGS_RESIZING, /* Avoid superblock update and resize race */
2240+
EXT4_FLAGS_SHUTDOWN, /* Prevent access to the file system */
2241+
EXT4_FLAGS_BDEV_IS_DAX, /* Current block device support DAX */
2242+
};
22412243

22422244
static inline int ext4_forced_shutdown(struct super_block *sb)
22432245
{

0 commit comments

Comments
 (0)