diff options
author | Jan Kara <jack@suse.cz> | 2023-06-16 18:50:49 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2023-07-30 00:37:24 +0200 |
commit | eb8ab4443aec5ffe923a471b337568a8158cd32b (patch) | |
tree | 4c7c5f88e3be846c0ef91b5b87b16365df423fe4 /fs/ext4/ext4.h | |
parent | ext4: use sb_rdonly() helper for checking read-only flag (diff) | |
download | linux-eb8ab4443aec5ffe923a471b337568a8158cd32b.tar.xz linux-eb8ab4443aec5ffe923a471b337568a8158cd32b.zip |
ext4: make ext4_forced_shutdown() take struct super_block
Currently ext4_forced_shutdown() takes struct ext4_sb_info but most
callers need to get it from struct super_block anyway. So just pass in
struct super_block to save all callers from some boilerplate code. No
functional changes.
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230616165109.21695-3-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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 0a2d55faa095..feb38c9fe129 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h @@ -2222,9 +2222,9 @@ extern int ext4_feature_set_ok(struct super_block *sb, int readonly); #define EXT4_FLAGS_SHUTDOWN 1 #define EXT4_FLAGS_BDEV_IS_DAX 2 -static inline int ext4_forced_shutdown(struct ext4_sb_info *sbi) +static inline int ext4_forced_shutdown(struct super_block *sb) { - return test_bit(EXT4_FLAGS_SHUTDOWN, &sbi->s_ext4_flags); + return test_bit(EXT4_FLAGS_SHUTDOWN, &EXT4_SB(sb)->s_ext4_flags); } /* |