diff options
author | Debabrata Banerjee <dbanerje@akamai.com> | 2019-04-30 23:08:15 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2019-04-30 23:08:15 -0400 |
commit | 50b29d8f033a7c88c5bc011abc2068b1691ab755 (patch) | |
tree | 705b74260c9525387136f30b65aa5de70424dd57 | |
parent | 28ba53c07638f31b153e3a32672a6124d0ff2a97 (diff) |
ext4: fix ext4_show_options for file systems w/o journal
Instead of removing EXT4_MOUNT_JOURNAL_CHECKSUM from s_def_mount_opt as
I assume was intended, all other options were blown away leading to
_ext4_show_options() output being incorrect.
Fixes: 1e381f60dad9 ("ext4: do not allow journal_opts for fs w/o journal")
Signed-off-by: Debabrata Banerjee <dbanerje@akamai.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
Cc: stable@kernel.org
-rw-r--r-- | fs/ext4/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index aeb6d22ea0ad..fc6fa2c93e77 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -4349,7 +4349,7 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent) | |||
4349 | "data=, fs mounted w/o journal"); | 4349 | "data=, fs mounted w/o journal"); |
4350 | goto failed_mount_wq; | 4350 | goto failed_mount_wq; |
4351 | } | 4351 | } |
4352 | sbi->s_def_mount_opt &= EXT4_MOUNT_JOURNAL_CHECKSUM; | 4352 | sbi->s_def_mount_opt &= ~EXT4_MOUNT_JOURNAL_CHECKSUM; |
4353 | clear_opt(sb, JOURNAL_CHECKSUM); | 4353 | clear_opt(sb, JOURNAL_CHECKSUM); |
4354 | clear_opt(sb, DATA_FLAGS); | 4354 | clear_opt(sb, DATA_FLAGS); |
4355 | sbi->s_journal = NULL; | 4355 | sbi->s_journal = NULL; |