Skip to content

Commit

Permalink
hfsplus: remove BKL from hfsplus_put_super
Browse files Browse the repository at this point in the history
Except for ->put_super the BKL is now gone from HFS, which means it's
superflous there too as ->put_super is serialized by the VFS.

Signed-off-by: Christoph Hellwig <hch@tuxera.com>
  • Loading branch information
Christoph Hellwig committed Oct 1, 2010
1 parent a9fdbf8 commit e753a62
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions fs/hfsplus/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include <linux/pagemap.h>
#include <linux/fs.h>
#include <linux/slab.h>
#include <linux/smp_lock.h>
#include <linux/vfs.h>
#include <linux/nls.h>

Expand Down Expand Up @@ -213,8 +212,6 @@ static void hfsplus_put_super(struct super_block *sb)
if (!sb->s_fs_info)
return;

lock_kernel();

if (sb->s_dirt)
hfsplus_write_super(sb);
if (!(sb->s_flags & MS_RDONLY) && HFSPLUS_SB(sb).s_vhdr) {
Expand All @@ -235,8 +232,6 @@ static void hfsplus_put_super(struct super_block *sb)
unload_nls(HFSPLUS_SB(sb).nls);
kfree(sb->s_fs_info);
sb->s_fs_info = NULL;

unlock_kernel();
}

static int hfsplus_statfs(struct dentry *dentry, struct kstatfs *buf)
Expand Down

0 comments on commit e753a62

Please sign in to comment.