aboutsummaryrefslogtreecommitdiffstats
path: root/fs/hfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/hfs')
-rw-r--r--fs/hfs/super.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/hfs/super.c b/fs/hfs/super.c
index e071e6d06463..9f5eaa01cc77 100644
--- a/fs/hfs/super.c
+++ b/fs/hfs/super.c
@@ -65,11 +65,15 @@ static void hfs_write_super(struct super_block *sb)
65 */ 65 */
66static void hfs_put_super(struct super_block *sb) 66static void hfs_put_super(struct super_block *sb)
67{ 67{
68 lock_kernel();
69
68 if (sb->s_dirt) 70 if (sb->s_dirt)
69 hfs_write_super(sb); 71 hfs_write_super(sb);
70 hfs_mdb_close(sb); 72 hfs_mdb_close(sb);
71 /* release the MDB's resources */ 73 /* release the MDB's resources */
72 hfs_mdb_put(sb); 74 hfs_mdb_put(sb);
75
76 unlock_kernel();
73} 77}
74 78
75/* 79/*