diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-06-06 19:56:53 +0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-07-14 16:32:42 +0400 |
commit | 0164b1a32e6849121ea73ef3124a2994951a4713 (patch) | |
tree | b26237af1e5d344a145886f35ec9281028e7635d /fs | |
parent | c9753b1d20e13c94d15a1c8b252a696744bd22a2 (diff) | |
download | linux-0164b1a32e6849121ea73ef3124a2994951a4713.tar.xz |
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')
-rw-r--r-- | fs/affs/super.c | 5 |
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; |