diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-07-12 09:28:06 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-07-22 15:58:14 -0400 |
commit | 65e5e83f7d01a3790deb1ba2e0d887e715c43307 (patch) | |
tree | 5849e44f8f27ff1f06e5a6e258401f4dc7abc106 | |
parent | 9d46be294d12871adf4206f89168b14d27adb8b5 (diff) |
fs/ufs: remove extra superblock write on unmount
UFS calls 'ufs_write_super()' from 'ufs_put_super()' in order to write the
superblocks to the media. However, it is not needed because VFS calls
'->sync_fs()' before calling '->put_super()' - so by the time we are in
'ufs_write_super()', the superblocks are already synchronized.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/ufs/super.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/ufs/super.c b/fs/ufs/super.c index 302f340d0071..ae91e0af2664 100644 --- a/fs/ufs/super.c +++ b/fs/ufs/super.c | |||
@@ -1238,9 +1238,6 @@ static void ufs_put_super(struct super_block *sb) | |||
1238 | 1238 | ||
1239 | UFSD("ENTER\n"); | 1239 | UFSD("ENTER\n"); |
1240 | 1240 | ||
1241 | if (sb->s_dirt) | ||
1242 | ufs_write_super(sb); | ||
1243 | |||
1244 | if (!(sb->s_flags & MS_RDONLY)) | 1241 | if (!(sb->s_flags & MS_RDONLY)) |
1245 | ufs_put_super_internal(sb); | 1242 | ufs_put_super_internal(sb); |
1246 | 1243 | ||