aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2015-02-12 23:04:27 -0500
committerTheodore Ts'o <tytso@mit.edu>2015-02-12 23:04:27 -0500
commitb94a8b36be4e74d8caff387fadf71f9f97c2ea69 (patch)
treef12c145a4f219568ca2565cbf7ae8b83712b064c /fs
parent0572639ff66dcffe62d37adfe4c4576f9fc398f4 (diff)
ext4: remove duplicate remount check for JOURNAL_CHECKSUM change
rejection of, changing journal_checksum during remount. One suffices. While we're at it, remove old comment about the "check" option which has been deprecated for some time now. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs')
-rw-r--r--fs/ext4/super.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 60db5a11fbea..2ecce8644cf8 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -4850,9 +4850,6 @@ static int ext4_remount(struct super_block *sb, int *flags, char *data)
4850 if (sbi->s_journal && sbi->s_journal->j_task->io_context) 4850 if (sbi->s_journal && sbi->s_journal->j_task->io_context)
4851 journal_ioprio = sbi->s_journal->j_task->io_context->ioprio; 4851 journal_ioprio = sbi->s_journal->j_task->io_context->ioprio;
4852 4852
4853 /*
4854 * Allow the "check" option to be passed as a remount option.
4855 */
4856 if (!parse_options(data, sb, NULL, &journal_ioprio, 1)) { 4853 if (!parse_options(data, sb, NULL, &journal_ioprio, 1)) {
4857 err = -EINVAL; 4854 err = -EINVAL;
4858 goto restore_opts; 4855 goto restore_opts;
@@ -4866,14 +4863,6 @@ static int ext4_remount(struct super_block *sb, int *flags, char *data)
4866 goto restore_opts; 4863 goto restore_opts;
4867 } 4864 }
4868 4865
4869 if ((old_opts.s_mount_opt & EXT4_MOUNT_JOURNAL_CHECKSUM) ^
4870 test_opt(sb, JOURNAL_CHECKSUM)) {
4871 ext4_msg(sb, KERN_ERR, "changing journal_checksum "
4872 "during remount not supported");
4873 err = -EINVAL;
4874 goto restore_opts;
4875 }
4876
4877 if (test_opt(sb, DATA_FLAGS) == EXT4_MOUNT_JOURNAL_DATA) { 4866 if (test_opt(sb, DATA_FLAGS) == EXT4_MOUNT_JOURNAL_DATA) {
4878 if (test_opt2(sb, EXPLICIT_DELALLOC)) { 4867 if (test_opt2(sb, EXPLICIT_DELALLOC)) {
4879 ext4_msg(sb, KERN_ERR, "can't mount with " 4868 ext4_msg(sb, KERN_ERR, "can't mount with "