diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-06-06 11:56:52 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-07-14 08:32:42 -0400 |
commit | c9753b1d20e13c94d15a1c8b252a696744bd22a2 (patch) | |
tree | 32785f32faaaea029fbbed912fca926f2b4ca94f /fs/affs | |
parent | bc86256d2e80e6731a2055175d9a32cf96eb71f8 (diff) |
affs: remove useless superblock writeout on unmount
We do not need to write out the superblock from '->put_super()' because VFS has
already called '->sync_fs()' by this time and the superblock has already been
written out. Thus, remove the 'affs_commit_super()' infocation from
'affs_put_super()'.
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')
-rw-r--r-- | fs/affs/super.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/affs/super.c b/fs/affs/super.c index 1d42e468abdd..12b4f58081b4 100644 --- a/fs/affs/super.c +++ b/fs/affs/super.c | |||
@@ -44,9 +44,6 @@ affs_put_super(struct super_block *sb) | |||
44 | struct affs_sb_info *sbi = AFFS_SB(sb); | 44 | struct affs_sb_info *sbi = AFFS_SB(sb); |
45 | pr_debug("AFFS: put_super()\n"); | 45 | pr_debug("AFFS: put_super()\n"); |
46 | 46 | ||
47 | if (!(sb->s_flags & MS_RDONLY) && sb->s_dirt) | ||
48 | affs_commit_super(sb, 1); | ||
49 | |||
50 | kfree(sbi->s_prefix); | 47 | kfree(sbi->s_prefix); |
51 | affs_free_bitmap(sb); | 48 | affs_free_bitmap(sb); |
52 | affs_brelse(sbi->s_root_bh); | 49 | affs_brelse(sbi->s_root_bh); |