summaryrefslogtreecommitdiff
path: root/fs/affs/super.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-06-06 18:56:53 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2012-07-14 16:32:42 +0400
commit0164b1a32e6849121ea73ef3124a2994951a4713 (patch)
treeb26237af1e5d344a145886f35ec9281028e7635d /fs/affs/super.c
parentc9753b1d20e13c94d15a1c8b252a696744bd22a2 (diff)
affs: remove useless superblock writeout on remount
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 <artem.bityutskiy@linux.intel.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/affs/super.c')
-rw-r--r--fs/affs/super.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/affs/super.c b/fs/affs/super.c
index 12b4f58081b4..c837e43687a6 100644
--- a/fs/affs/super.c
+++ b/fs/affs/super.c
@@ -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;