diff options
author | Zhihao Cheng <chengzhihao1@huawei.com> | 2023-03-15 04:31:24 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2023-06-27 02:35:13 +0300 |
commit | 93e92cfcc1977b2b914c75333aa4b629b2fa7ca2 (patch) | |
tree | 74344ad4dcd3b5419bf206266ae7835265f5f486 /README | |
parent | 26fb5290240dc31cae99b8b4dd2af7f46dfcba6b (diff) | |
download | linux-93e92cfcc1977b2b914c75333aa4b629b2fa7ca2.tar.xz |
ext4: ext4_put_super: Remove redundant checking for 'sbi->s_journal_bdev'
As discussed in [1], 'sbi->s_journal_bdev != sb->s_bdev' will always
become true if sbi->s_journal_bdev exists. Filesystem block device and
journal block device are both opened with 'FMODE_EXCL' mode, so these
two devices can't be same one. Then we can remove the redundant checking
'sbi->s_journal_bdev != sb->s_bdev' if 'sbi->s_journal_bdev' exists.
[1] https://lore.kernel.org/lkml/f86584f6-3877-ff18-47a1-2efaa12d18b2@huawei.com/
Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230315013128.3911115-3-chengzhihao1@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions