diff options
author | Jan Kara <jack@suse.cz> | 2023-06-16 18:50:50 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2023-07-29 18:37:53 -0400 |
commit | 22b8d707b07e6e06f50fe1d9ca8756e1f894eb0d (patch) | |
tree | dfc8008a263537038d873d16049c40e811be5486 /fs/ext4/ext4.h | |
parent | eb8ab4443aec5ffe923a471b337568a8158cd32b (diff) | |
download | lwn-22b8d707b07e6e06f50fe1d9ca8756e1f894eb0d.tar.gz lwn-22b8d707b07e6e06f50fe1d9ca8756e1f894eb0d.zip |
ext4: make 'abort' mount option handling standard
'abort' mount option is the only mount option that has special handling
and sets a bit in sbi->s_mount_flags. There is not strong reason for
that so just simplify the code and make 'abort' set a bit in
sbi->s_mount_opt2 as any other mount option. This simplifies the code
and will allow us to drop EXT4_MF_FS_ABORTED completely in the following
patch.
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230616165109.21695-4-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index feb38c9fe129..907829007f3f 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h @@ -1235,6 +1235,7 @@ struct ext4_inode_info { #define EXT4_MOUNT2_MB_OPTIMIZE_SCAN 0x00000080 /* Optimize group * scanning in mballoc */ +#define EXT4_MOUNT2_ABORT 0x00000100 /* Abort filesystem */ #define clear_opt(sb, opt) EXT4_SB(sb)->s_mount_opt &= \ ~EXT4_MOUNT_##opt |