projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd29881
)
ext4: convert EXT4_FLAGS_* defines to enum
author
Baokun Li
<libaokun1@huawei.com>
Wed, 22 Jan 2025 11:41:24 +0000
(19:41 +0800)
committer
Theodore Ts'o
<tytso@mit.edu>
Thu, 13 Mar 2025 14:16:34 +0000
(10:16 -0400)
Do away with the defines and use an enum as it's cleaner.
Signed-off-by: Baokun Li <libaokun1@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Zhang Yi <yi.zhang@huawei.com>
Link:
https://patch.msgid.link/20250122114130.229709-2-libaokun@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ext4.h
patch
|
blob
|
blame
|
history
diff --git
a/fs/ext4/ext4.h
b/fs/ext4/ext4.h
index 8c5e8243390981d81555134114cf8ce38f3d9d7b..8f6bfa25fa6f917daa44e7bf01c2d152a327541a 100644
(file)
--- 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)
{