Skip to content

Commit 67e2c19

Browse files
Marco StornelliAl Viro
authored andcommitted
ext3: drop lock/unlock super
Removed lock/unlock super. Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com> Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 4f7754c commit 67e2c19

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

‎fs/ext3/super.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2578,11 +2578,9 @@ static int ext3_freeze(struct super_block *sb)
25782578
static int ext3_unfreeze(struct super_block *sb)
25792579
{
25802580
if (!(sb->s_flags & MS_RDONLY)) {
2581-
lock_super(sb);
25822581
/* Reser the needs_recovery flag before the fs is unlocked. */
25832582
EXT3_SET_INCOMPAT_FEATURE(sb, EXT3_FEATURE_INCOMPAT_RECOVER);
25842583
ext3_commit_super(sb, EXT3_SB(sb)->s_es, 1);
2585-
unlock_super(sb);
25862584
journal_unlock_updates(EXT3_SB(sb)->s_journal);
25872585
}
25882586
return 0;
@@ -2602,7 +2600,6 @@ static int ext3_remount (struct super_block * sb, int * flags, char * data)
26022600
#endif
26032601

26042602
/* Store the original options */
2605-
lock_super(sb);
26062603
old_sb_flags = sb->s_flags;
26072604
old_opts.s_mount_opt = sbi->s_mount_opt;
26082605
old_opts.s_resuid = sbi->s_resuid;
@@ -2708,8 +2705,6 @@ static int ext3_remount (struct super_block * sb, int * flags, char * data)
27082705
old_opts.s_qf_names[i] != sbi->s_qf_names[i])
27092706
kfree(old_opts.s_qf_names[i]);
27102707
#endif
2711-
unlock_super(sb);
2712-
27132708
if (enable_quota)
27142709
dquot_resume(sb, -1);
27152710
return 0;
@@ -2728,7 +2723,6 @@ static int ext3_remount (struct super_block * sb, int * flags, char * data)
27282723
sbi->s_qf_names[i] = old_opts.s_qf_names[i];
27292724
}
27302725
#endif
2731-
unlock_super(sb);
27322726
return err;
27332727
}
27342728

0 commit comments

Comments
 (0)