aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext3
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext3')
-rw-r--r--fs/ext3/super.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/ext3/super.c b/fs/ext3/super.c
index edde63fdb9a1..2e20bd771337 100644
--- a/fs/ext3/super.c
+++ b/fs/ext3/super.c
@@ -411,9 +411,6 @@ static void ext3_put_super (struct super_block * sb)
411 int i, err; 411 int i, err;
412 412
413 dquot_disable(sb, -1, DQUOT_USAGE_ENABLED | DQUOT_LIMITS_ENABLED); 413 dquot_disable(sb, -1, DQUOT_USAGE_ENABLED | DQUOT_LIMITS_ENABLED);
414
415 lock_kernel();
416
417 ext3_xattr_put_super(sb); 414 ext3_xattr_put_super(sb);
418 err = journal_destroy(sbi->s_journal); 415 err = journal_destroy(sbi->s_journal);
419 sbi->s_journal = NULL; 416 sbi->s_journal = NULL;
@@ -462,8 +459,6 @@ static void ext3_put_super (struct super_block * sb)
462 sb->s_fs_info = NULL; 459 sb->s_fs_info = NULL;
463 kfree(sbi->s_blockgroup_lock); 460 kfree(sbi->s_blockgroup_lock);
464 kfree(sbi); 461 kfree(sbi);
465
466 unlock_kernel();
467} 462}
468 463
469static struct kmem_cache *ext3_inode_cachep; 464static struct kmem_cache *ext3_inode_cachep;
@@ -2534,8 +2529,6 @@ static int ext3_remount (struct super_block * sb, int * flags, char * data)
2534 int i; 2529 int i;
2535#endif 2530#endif
2536 2531
2537 lock_kernel();
2538
2539 /* Store the original options */ 2532 /* Store the original options */
2540 lock_super(sb); 2533 lock_super(sb);
2541 old_sb_flags = sb->s_flags; 2534 old_sb_flags = sb->s_flags;
@@ -2644,7 +2637,6 @@ static int ext3_remount (struct super_block * sb, int * flags, char * data)
2644 kfree(old_opts.s_qf_names[i]); 2637 kfree(old_opts.s_qf_names[i]);
2645#endif 2638#endif
2646 unlock_super(sb); 2639 unlock_super(sb);
2647 unlock_kernel();
2648 2640
2649 if (enable_quota) 2641 if (enable_quota)
2650 dquot_resume(sb, -1); 2642 dquot_resume(sb, -1);
@@ -2665,7 +2657,6 @@ restore_opts:
2665 } 2657 }
2666#endif 2658#endif
2667 unlock_super(sb); 2659 unlock_super(sb);
2668 unlock_kernel();
2669 return err; 2660 return err;
2670} 2661}
2671 2662