aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ocfs2/ioctl.c')
-rw-r--r--fs/ocfs2/ioctl.c12
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
116int ocfs2_ioctl(struct inode * inode, struct file * filp, 116long 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
170long ocfs2_compat_ioctl(struct file *file, unsigned cmd, unsigned long arg) 170long 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