]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/fat/inode.c
push BKL down into ->put_super
[net-next-2.6.git] / fs / fat / inode.c
index 4978621511bf73102383268e17e73adb570e4f1e..2b88c93af227bbaf2fdd4c82510bb129aa082a06 100644 (file)
@@ -451,6 +451,8 @@ static void fat_put_super(struct super_block *sb)
 {
        struct msdos_sb_info *sbi = MSDOS_SB(sb);
 
+       lock_kernel();
+
        if (sb->s_dirt)
                fat_write_super(sb);
 
@@ -470,6 +472,8 @@ static void fat_put_super(struct super_block *sb)
 
        sb->s_fs_info = NULL;
        kfree(sbi);
+
+       unlock_kernel();
 }
 
 static struct kmem_cache *fat_inode_cachep;