aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-06-06 11:56:53 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-07-14 08:32:42 -0400
commit0164b1a32e6849121ea73ef3124a2994951a4713 (patch)
treeb26237af1e5d344a145886f35ec9281028e7635d
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>
-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)
545 if ((*flags & MS_RDONLY) == (sb->s_flags & MS_RDONLY)) 545 if ((*flags & MS_RDONLY) == (sb->s_flags & MS_RDONLY))
546 return 0; 546 return 0;
547 547
548 if (*flags & MS_RDONLY) { 548 if (*flags & MS_RDONLY)
549 affs_write_super(sb);
550 affs_free_bitmap(sb); 549 affs_free_bitmap(sb);
551 } else 550 else
552 res = affs_init_bitmap(sb, flags); 551 res = affs_init_bitmap(sb, flags);
553 552
554 return res; 553 return res;