diff options
-rw-r--r-- | fs/ext4/super.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 5c11e2153e36..96059e0ef165 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -4845,6 +4845,14 @@ static int ext4_remount(struct super_block *sb, int *flags, char *data) | |||
4845 | goto restore_opts; | 4845 | goto restore_opts; |
4846 | } | 4846 | } |
4847 | 4847 | ||
4848 | if ((old_opts.s_mount_opt & EXT4_MOUNT_JOURNAL_CHECKSUM) ^ | ||
4849 | test_opt(sb, JOURNAL_CHECKSUM)) { | ||
4850 | ext4_msg(sb, KERN_ERR, "changing journal_checksum " | ||
4851 | "during remount not supported"); | ||
4852 | err = -EINVAL; | ||
4853 | goto restore_opts; | ||
4854 | } | ||
4855 | |||
4848 | if (test_opt(sb, DATA_FLAGS) == EXT4_MOUNT_JOURNAL_DATA) { | 4856 | if (test_opt(sb, DATA_FLAGS) == EXT4_MOUNT_JOURNAL_DATA) { |
4849 | if (test_opt2(sb, EXPLICIT_DELALLOC)) { | 4857 | if (test_opt2(sb, EXPLICIT_DELALLOC)) { |
4850 | ext4_msg(sb, KERN_ERR, "can't mount with " | 4858 | ext4_msg(sb, KERN_ERR, "can't mount with " |