diff options
author | Andi Kleen <ak@suse.de> | 2008-01-26 21:17:17 -0500 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2008-04-18 11:56:11 -0400 |
commit | c9ec14884d69a303eef4faae42bd3c4e25b19941 (patch) | |
tree | 50ed19faff3fbaaab8dfa872b506501a24826df3 /fs/ocfs2/ioctl.c | |
parent | 5dabd69515765156605b09261abf969236a77803 (diff) |
ocfs2: Convert ocfs2 over to unlocked_ioctl
As far as I can see there is nothing in ocfs2_ioctl that requires the BKL,
so use unlocked_ioctl
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/ioctl.c')
-rw-r--r-- | fs/ocfs2/ioctl.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/fs/ocfs2/ioctl.c b/fs/ocfs2/ioctl.c index ab1c2167d7f4..b413166dd163 100644 --- a/fs/ocfs2/ioctl.c +++ b/fs/ocfs2/ioctl.c | |||
@@ -113,9 +113,9 @@ bail: | |||
113 | return status; | 113 | return status; |
114 | } | 114 | } |
115 | 115 | ||
116 | int ocfs2_ioctl(struct inode * inode, struct file * filp, | 116 | long ocfs2_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) |
117 | unsigned int cmd, unsigned long arg) | ||
118 | { | 117 | { |
118 | struct inode *inode = filp->f_path.dentry->d_inode; | ||
119 | unsigned int flags; | 119 | unsigned int flags; |
120 | int new_clusters; | 120 | int new_clusters; |
121 | int status; | 121 | int status; |
@@ -169,9 +169,6 @@ int ocfs2_ioctl(struct inode * inode, struct file * filp, | |||
169 | #ifdef CONFIG_COMPAT | 169 | #ifdef CONFIG_COMPAT |
170 | long ocfs2_compat_ioctl(struct file *file, unsigned cmd, unsigned long arg) | 170 | long ocfs2_compat_ioctl(struct file *file, unsigned cmd, unsigned long arg) |
171 | { | 171 | { |
172 | struct inode *inode = file->f_path.dentry->d_inode; | ||
173 | int ret; | ||
174 | |||
175 | switch (cmd) { | 172 | switch (cmd) { |
176 | case OCFS2_IOC32_GETFLAGS: | 173 | case OCFS2_IOC32_GETFLAGS: |
177 | cmd = OCFS2_IOC_GETFLAGS; | 174 | cmd = OCFS2_IOC_GETFLAGS; |
@@ -191,9 +188,6 @@ long ocfs2_compat_ioctl(struct file *file, unsigned cmd, unsigned long arg) | |||
191 | return -ENOIOCTLCMD; | 188 | return -ENOIOCTLCMD; |
192 | } | 189 | } |
193 | 190 | ||
194 | lock_kernel(); | 191 | return ocfs2_ioctl(file, cmd, arg); |
195 | ret = ocfs2_ioctl(inode, file, cmd, arg); | ||
196 | unlock_kernel(); | ||
197 | return ret; | ||
198 | } | 192 | } |
199 | #endif | 193 | #endif |