diff options
author | Christoph Hellwig <hch@lst.de> | 2010-09-30 23:41:53 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2010-09-30 23:41:53 -0400 |
commit | e753a62156e952fd5a3c64f98454d9aeee3a2546 (patch) | |
tree | 1f474a1212a0690cf30b817822a31094b52e8b5d | |
parent | a9fdbf8c6070d49c482e209df7ee93d9ec41ea27 (diff) |
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: Christoph Hellwig <hch@tuxera.com>
-rw-r--r-- | fs/hfsplus/super.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/hfsplus/super.c b/fs/hfsplus/super.c index 4936642debaa..a1d3fd920403 100644 --- a/fs/hfsplus/super.c +++ b/fs/hfsplus/super.c | |||
@@ -12,7 +12,6 @@ | |||
12 | #include <linux/pagemap.h> | 12 | #include <linux/pagemap.h> |
13 | #include <linux/fs.h> | 13 | #include <linux/fs.h> |
14 | #include <linux/slab.h> | 14 | #include <linux/slab.h> |
15 | #include <linux/smp_lock.h> | ||
16 | #include <linux/vfs.h> | 15 | #include <linux/vfs.h> |
17 | #include <linux/nls.h> | 16 | #include <linux/nls.h> |
18 | 17 | ||
@@ -213,8 +212,6 @@ static void hfsplus_put_super(struct super_block *sb) | |||
213 | if (!sb->s_fs_info) | 212 | if (!sb->s_fs_info) |
214 | return; | 213 | return; |
215 | 214 | ||
216 | lock_kernel(); | ||
217 | |||
218 | if (sb->s_dirt) | 215 | if (sb->s_dirt) |
219 | hfsplus_write_super(sb); | 216 | hfsplus_write_super(sb); |
220 | if (!(sb->s_flags & MS_RDONLY) && HFSPLUS_SB(sb).s_vhdr) { | 217 | 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 | unload_nls(HFSPLUS_SB(sb).nls); | 232 | unload_nls(HFSPLUS_SB(sb).nls); |
236 | kfree(sb->s_fs_info); | 233 | kfree(sb->s_fs_info); |
237 | sb->s_fs_info = NULL; | 234 | sb->s_fs_info = NULL; |
238 | |||
239 | unlock_kernel(); | ||
240 | } | 235 | } |
241 | 236 | ||
242 | static int hfsplus_statfs(struct dentry *dentry, struct kstatfs *buf) | 237 | static int hfsplus_statfs(struct dentry *dentry, struct kstatfs *buf) |