aboutsummaryrefslogtreecommitdiffstats
path: root/fs/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/super.c')
-rw-r--r--fs/super.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/super.c b/fs/super.c
index 1905f4af01cc..83b47416d006 100644
--- a/fs/super.c
+++ b/fs/super.c
@@ -540,7 +540,6 @@ int do_remount_sb(struct super_block *sb, int flags, void *data, int force)
540 shrink_dcache_sb(sb); 540 shrink_dcache_sb(sb);
541 sync_filesystem(sb); 541 sync_filesystem(sb);
542 542
543 lock_kernel();
544 /* If we are remounting RDONLY and current sb is read/write, 543 /* If we are remounting RDONLY and current sb is read/write,
545 make sure there are no rw files opened */ 544 make sure there are no rw files opened */
546 if ((flags & MS_RDONLY) && !(sb->s_flags & MS_RDONLY)) { 545 if ((flags & MS_RDONLY) && !(sb->s_flags & MS_RDONLY)) {
@@ -566,7 +565,6 @@ int do_remount_sb(struct super_block *sb, int flags, void *data, int force)
566 } 565 }
567 } 566 }
568 sb->s_flags = (sb->s_flags & ~MS_RMT_MASK) | (flags & MS_RMT_MASK); 567 sb->s_flags = (sb->s_flags & ~MS_RMT_MASK) | (flags & MS_RMT_MASK);
569 unlock_kernel();
570 if (remount_rw) 568 if (remount_rw)
571 vfs_dq_quota_on_remount(sb); 569 vfs_dq_quota_on_remount(sb);
572 return 0; 570 return 0;