aboutsummaryrefslogtreecommitdiffstats
path: root/fs/udf/file.c
diff options
context:
space:
mode:
authorAlessio Igor Bogani <abogani@texware.it>2010-11-16 12:40:49 -0500
committerJan Kara <jack@suse.cz>2011-01-06 11:03:57 -0500
commit9db9f9e31d7661dff35a75ed01ff9fc0d6acdaf8 (patch)
tree8e95c6f73b86b6f9e2089f61c9c964f44f08558a /fs/udf/file.c
parent7db09be629033b79792a1bf18f505f5f15914395 (diff)
udf: Remove unnecessary bkl usages
The udf_readdir(), udf_lookup(), udf_create(), udf_mknod(), udf_mkdir(), udf_rmdir(), udf_link(), udf_get_parent() and udf_unlink() seems already adequately protected by i_mutex held by VFS invoking calls. The udf_rename() instead should be already protected by lock_rename again by VFS. The udf_ioctl(), udf_fill_super() and udf_evict_inode() don't requires any further protection. This work was supported by a hardware donation from the CE Linux Forum. Signed-off-by: Alessio Igor Bogani <abogani@texware.it> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf/file.c')
-rw-r--r--fs/udf/file.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/udf/file.c b/fs/udf/file.c
index df0c5561cc7e..4e3bbd81b57b 100644
--- a/fs/udf/file.c
+++ b/fs/udf/file.c
@@ -32,7 +32,6 @@
32#include <linux/string.h> /* memset */ 32#include <linux/string.h> /* memset */
33#include <linux/capability.h> 33#include <linux/capability.h>
34#include <linux/errno.h> 34#include <linux/errno.h>
35#include <linux/smp_lock.h>
36#include <linux/pagemap.h> 35#include <linux/pagemap.h>
37#include <linux/buffer_head.h> 36#include <linux/buffer_head.h>
38#include <linux/aio.h> 37#include <linux/aio.h>
@@ -149,8 +148,6 @@ long udf_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
149 long old_block, new_block; 148 long old_block, new_block;
150 int result = -EINVAL; 149 int result = -EINVAL;
151 150
152 lock_kernel();
153
154 if (file_permission(filp, MAY_READ) != 0) { 151 if (file_permission(filp, MAY_READ) != 0) {
155 udf_debug("no permission to access inode %lu\n", inode->i_ino); 152 udf_debug("no permission to access inode %lu\n", inode->i_ino);
156 result = -EPERM; 153 result = -EPERM;
@@ -196,7 +193,6 @@ long udf_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
196 } 193 }
197 194
198out: 195out:
199 unlock_kernel();
200 return result; 196 return result;
201} 197}
202 198