Skip to content

Commit 719f2c8

Browse files
Artem BityutskiyAl Viro
authored andcommitted
sysv: do not mark superblock dirty on remount
No need to mark the superblock as dirty in sysv_remount, synchronize it instead (only if mounting R/O). I did not find any docs about this file-system, and I have no possibility to test my changes. Thus, this is untested. I see other issues in sysv, e.g., why sysv_sync_fs writes only in the FSTYPE_SYSV4 case? However, it marks its SB bh's dirty for all types, and does not wait for them ever. With zero docs I'm unable to fix this. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 315671f commit 719f2c8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎fs/sysv/inode.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ static int sysv_remount(struct super_block *sb, int *flags, char *data)
7171
lock_super(sb);
7272
if (sbi->s_forced_ro)
7373
*flags |= MS_RDONLY;
74-
if (!(*flags & MS_RDONLY))
75-
sb->s_dirt = 1;
74+
if (*flags & MS_RDONLY)
75+
sysv_write_super(sb);
7676
unlock_super(sb);
7777
return 0;
7878
}

0 commit comments

Comments
 (0)