From: Artem Bityutskiy Date: Thu, 12 Jul 2012 14:28:46 +0000 (+0300) Subject: hfs: remove extra mdb write on unmount X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a3742d4828caeffab4cb075b562a4ed92d3e74d6;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: Al Viro --- diff --git a/fs/hfs/super.c b/fs/hfs/super.c index f7c06bbf33b..47e4119a065 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) */ static void hfs_put_super(struct super_block *sb) { - if (sb->s_dirt) - hfs_write_super(sb); hfs_mdb_close(sb); /* release the MDB's resources */ hfs_mdb_put(sb);