aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-07-12 10:28:46 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-07-22 15:58:07 -0400
commita3742d4828caeffab4cb075b562a4ed92d3e74d6 (patch)
treeb7f6a29a79b976460a7880622bf5cf750086e2ce /fs
parentb59352359d6555aa8537d74ac9b15c1c6bcf3c68 (diff)
hfs: remove extra mdb write on unmount
HFS calls 'hfs_write_super()' from 'hfs_put_super()' in order to write the MDB to the media. However, it is not needed because VFS calls '->sync_fs()' before calling '->put_super()' - so by the time we are in 'hfs_write_super()', the MDB is already synchronized. 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/hfs/super.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/hfs/super.c b/fs/hfs/super.c
index f7c06bbf33bc..47e4119a0650 100644
--- a/fs/hfs/super.c
+++ b/fs/hfs/super.c
@@ -74,8 +74,6 @@ static int hfs_sync_fs(struct super_block *sb, int wait)
74 */ 74 */
75static void hfs_put_super(struct super_block *sb) 75static void hfs_put_super(struct super_block *sb)
76{ 76{
77 if (sb->s_dirt)
78 hfs_write_super(sb);
79 hfs_mdb_close(sb); 77 hfs_mdb_close(sb);
80 /* release the MDB's resources */ 78 /* release the MDB's resources */
81 hfs_mdb_put(sb); 79 hfs_mdb_put(sb);