VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Christoph Hellwig <hch@lst.de> 2009-05-05 15:40:36 +0200 committer: Al Viro <viro@zeniv.linux.org.uk> 2009-06-11 21:36:07 -0400 commit: 6cfd0148425e528b859b26e436b01f23f6926224 parent: a9e220f8322e2b0e0b8903fe00265461cffad3f0
Commit Summary:
push BKL down into ->put_super
Diffstat:
1 file changed, 3 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)
  */
 static void hfs_put_super(struct super_block *sb)
 {
+	lock_kernel();
+
 	if (sb->s_dirt)
 		hfs_write_super(sb);
 	hfs_mdb_close(sb);
 	/* release the MDB's resources */
 	hfs_mdb_put(sb);
+
+	unlock_kernel();
 }
 
 /*