diff options
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r-- | fs/ext4/super.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 1d4180b86772..a9c683425929 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -3421,6 +3421,7 @@ static int ext4_remount(struct super_block *sb, int *flags, char *data) | |||
3421 | #endif | 3421 | #endif |
3422 | 3422 | ||
3423 | /* Store the original options */ | 3423 | /* Store the original options */ |
3424 | lock_super(sb); | ||
3424 | old_sb_flags = sb->s_flags; | 3425 | old_sb_flags = sb->s_flags; |
3425 | old_opts.s_mount_opt = sbi->s_mount_opt; | 3426 | old_opts.s_mount_opt = sbi->s_mount_opt; |
3426 | old_opts.s_resuid = sbi->s_resuid; | 3427 | old_opts.s_resuid = sbi->s_resuid; |
@@ -3554,6 +3555,7 @@ static int ext4_remount(struct super_block *sb, int *flags, char *data) | |||
3554 | old_opts.s_qf_names[i] != sbi->s_qf_names[i]) | 3555 | old_opts.s_qf_names[i] != sbi->s_qf_names[i]) |
3555 | kfree(old_opts.s_qf_names[i]); | 3556 | kfree(old_opts.s_qf_names[i]); |
3556 | #endif | 3557 | #endif |
3558 | unlock_super(sb); | ||
3557 | return 0; | 3559 | return 0; |
3558 | 3560 | ||
3559 | restore_opts: | 3561 | restore_opts: |
@@ -3573,6 +3575,7 @@ restore_opts: | |||
3573 | sbi->s_qf_names[i] = old_opts.s_qf_names[i]; | 3575 | sbi->s_qf_names[i] = old_opts.s_qf_names[i]; |
3574 | } | 3576 | } |
3575 | #endif | 3577 | #endif |
3578 | unlock_super(sb); | ||
3576 | return err; | 3579 | return err; |
3577 | } | 3580 | } |
3578 | 3581 | ||