Skip to content

Commit

Permalink
affs: remove useless superblock writeout on remount
Browse files Browse the repository at this point in the history
We do not need to write out the superblock from '->remount_fs()' because
VFS has already called '->sync_fs()' by this time and the superblock has
already been written out. Thus, remove the 'affs_write_super()'
infocation from 'affs_remount()'.

Signed-off-by: Artem Bityutskiy <[email protected]>
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
dedekind authored and Al Viro committed Jul 14, 2012
1 parent c9753b1 commit 0164b1a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions fs/affs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -545,10 +545,9 @@ affs_remount(struct super_block *sb, int *flags, char *data)
if ((*flags & MS_RDONLY) == (sb->s_flags & MS_RDONLY))
return 0;

if (*flags & MS_RDONLY) {
affs_write_super(sb);
if (*flags & MS_RDONLY)
affs_free_bitmap(sb);
} else
else
res = affs_init_bitmap(sb, flags);

return res;
Expand Down

0 comments on commit 0164b1a

Please sign in to comment.