summaryrefslogtreecommitdiffstats
path: root/fs/jfs/jfs_inode.h
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2008-01-27 16:58:51 -0600
committerDave Kleikamp <shaggy@linux.vnet.ibm.com>2008-02-07 13:33:58 -0600
commitbaab81fa518ecfac597402b462631f5593926623 (patch)
treede6339ce964d91959a93401117992df409280812 /fs/jfs/jfs_inode.h
parent0afc2edfada50980bec999f94dcea26ebad3dda6 (diff)
downloadlinux-stable-baab81fa518ecfac597402b462631f5593926623.tar.gz
linux-stable-baab81fa518ecfac597402b462631f5593926623.tar.bz2
linux-stable-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 'fs/jfs/jfs_inode.h')
-rw-r--r--fs/jfs/jfs_inode.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/jfs/jfs_inode.h b/fs/jfs/jfs_inode.h
index 95a6a11425e5..570fd5e3ef61 100644
--- a/fs/jfs/jfs_inode.h
+++ b/fs/jfs/jfs_inode.h
@@ -22,8 +22,7 @@ struct fid;
extern struct inode *ialloc(struct inode *, umode_t);
extern int jfs_fsync(struct file *, struct dentry *, int);
-extern int jfs_ioctl(struct inode *, struct file *,
- unsigned int, unsigned long);
+extern long jfs_ioctl(struct file *, unsigned int, unsigned long);
extern struct inode *jfs_iget(struct super_block *, unsigned long);
extern int jfs_commit_inode(struct inode *, int);
extern int jfs_write_inode(struct inode*, int);