]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/nilfs2/super.c
push BKL down into ->put_super
[net-next-2.6.git] / fs / nilfs2 / super.c
index 7901d8cbb9b1f0ec5e8db66426835defc6342473..7262e8427c203a48852f9570938f0313c4e27310 100644 (file)
@@ -316,6 +316,8 @@ static void nilfs_put_super(struct super_block *sb)
        struct nilfs_sb_info *sbi = NILFS_SB(sb);
        struct the_nilfs *nilfs = sbi->s_nilfs;
 
+       lock_kernel();
+
        if (sb->s_dirt)
                nilfs_write_super(sb);
 
@@ -333,6 +335,8 @@ static void nilfs_put_super(struct super_block *sb)
        sbi->s_super = NULL;
        sb->s_fs_info = NULL;
        kfree(sbi);
+
+       unlock_kernel();
 }
 
 /**