Skip to content

Commit eee4589

Browse files
dedekindAl Viro
authored andcommitted
fs/sysv: remove another useless write_super call
We do not need to call 'sysv_write_super()' from 'sysv_remount()', because VFS has called 'sysv_sync_fs()' before calling '->remount()'. So remove it. Remove also '(un)lock_super()' which obvioulsy is becoming useless in this function. Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent a4d05d3 commit eee4589

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

fs/sysv/inode.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,9 @@ static void sysv_write_super(struct super_block *sb)
6868
static int sysv_remount(struct super_block *sb, int *flags, char *data)
6969
{
7070
struct sysv_sb_info *sbi = SYSV_SB(sb);
71-
lock_super(sb);
71+
7272
if (sbi->s_forced_ro)
7373
*flags |= MS_RDONLY;
74-
if (*flags & MS_RDONLY)
75-
sysv_write_super(sb);
76-
unlock_super(sb);
7774
return 0;
7875
}
7976

0 commit comments

Comments
 (0)