diff options
Diffstat (limited to 'fs/hfs')
-rw-r--r-- | fs/hfs/super.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/hfs/super.c b/fs/hfs/super.c index a36bb749926d..e071e6d06463 100644 --- a/fs/hfs/super.c +++ b/fs/hfs/super.c | |||
@@ -65,6 +65,8 @@ static void hfs_write_super(struct super_block *sb) | |||
65 | */ | 65 | */ |
66 | static void hfs_put_super(struct super_block *sb) | 66 | static void hfs_put_super(struct super_block *sb) |
67 | { | 67 | { |
68 | if (sb->s_dirt) | ||
69 | hfs_write_super(sb); | ||
68 | hfs_mdb_close(sb); | 70 | hfs_mdb_close(sb); |
69 | /* release the MDB's resources */ | 71 | /* release the MDB's resources */ |
70 | hfs_mdb_put(sb); | 72 | hfs_mdb_put(sb); |