Skip to content

Commit

Permalink
hpfs: drop lock/unlock super
Browse files Browse the repository at this point in the history
Removed lock/unlock super.

Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
Acked-by: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Marco Stornelli authored and Al Viro committed Oct 10, 2012
1 parent e40b34c commit f6e12dc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fs/hpfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,6 @@ static int hpfs_remount_fs(struct super_block *s, int *flags, char *data)
*flags |= MS_NOATIME;

hpfs_lock(s);
lock_super(s);
uid = sbi->sb_uid; gid = sbi->sb_gid;
umask = 0777 & ~sbi->sb_mode;
lowercase = sbi->sb_lowercase;
Expand Down Expand Up @@ -431,12 +430,10 @@ static int hpfs_remount_fs(struct super_block *s, int *flags, char *data)

replace_mount_options(s, new_opts);

unlock_super(s);
hpfs_unlock(s);
return 0;

out_err:
unlock_super(s);
hpfs_unlock(s);
kfree(new_opts);
return -EINVAL;
Expand Down

0 comments on commit f6e12dc

Please sign in to comment.