Commit e753a621 authored by Christoph Hellwig's avatar Christoph Hellwig

hfsplus: remove BKL from hfsplus_put_super

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: default avatarChristoph Hellwig <hch@tuxera.com>
parent a9fdbf8c
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
#include <linux/pagemap.h> #include <linux/pagemap.h>
#include <linux/fs.h> #include <linux/fs.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/smp_lock.h>
#include <linux/vfs.h> #include <linux/vfs.h>
#include <linux/nls.h> #include <linux/nls.h>
...@@ -213,8 +212,6 @@ static void hfsplus_put_super(struct super_block *sb) ...@@ -213,8 +212,6 @@ static void hfsplus_put_super(struct super_block *sb)
if (!sb->s_fs_info) if (!sb->s_fs_info)
return; return;
lock_kernel();
if (sb->s_dirt) if (sb->s_dirt)
hfsplus_write_super(sb); hfsplus_write_super(sb);
if (!(sb->s_flags & MS_RDONLY) && HFSPLUS_SB(sb).s_vhdr) { if (!(sb->s_flags & MS_RDONLY) && HFSPLUS_SB(sb).s_vhdr) {
...@@ -235,8 +232,6 @@ static void hfsplus_put_super(struct super_block *sb) ...@@ -235,8 +232,6 @@ static void hfsplus_put_super(struct super_block *sb)
unload_nls(HFSPLUS_SB(sb).nls); unload_nls(HFSPLUS_SB(sb).nls);
kfree(sb->s_fs_info); kfree(sb->s_fs_info);
sb->s_fs_info = NULL; sb->s_fs_info = NULL;
unlock_kernel();
} }
static int hfsplus_statfs(struct dentry *dentry, struct kstatfs *buf) static int hfsplus_statfs(struct dentry *dentry, struct kstatfs *buf)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment