summaryrefslogtreecommitdiffstats
path: root/fs/jfs/namei.c
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2008-01-27 23:58:51 +0100
committerDave Kleikamp <shaggy@linux.vnet.ibm.com>2008-02-07 20:33:58 +0100
commitbaab81fa518ecfac597402b462631f5593926623 (patch)
treede6339ce964d91959a93401117992df409280812 /fs/jfs/namei.c
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6 (diff)
downloadlinux-baab81fa518ecfac597402b462631f5593926623.tar.xz
linux-baab81fa518ecfac597402b462631f5593926623.zip
BKL-removal: Use unlocked_ioctl for jfs
Convert jfs_ioctl over to not use the BKL. The only potential race I could see was with two ioctls in parallel changing the flags and losing the updates. Use the i_mutex to protect against this. Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
Diffstat (limited to '')
-rw-r--r--fs/jfs/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jfs/namei.c b/fs/jfs/namei.c
index 403cfc24c6fe..6440904a051c 100644
--- a/fs/jfs/namei.c
+++ b/fs/jfs/namei.c
@@ -1556,7 +1556,7 @@ const struct file_operations jfs_dir_operations = {
.read = generic_read_dir,
.readdir = jfs_readdir,
.fsync = jfs_fsync,
- .ioctl = jfs_ioctl,
+ .unlocked_ioctl = jfs_ioctl,
};
static int jfs_ci_hash(struct dentry *dir, struct qstr *this)