Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24590
b: refs/heads/master
c: e0edd59
h: refs/heads/master
v: v3
  • Loading branch information
Nathan Scott committed Mar 28, 2006
1 parent 00cd98e commit bcf0246
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c41564b5af328ea4600b26119f6c9c8e1eb5c28b
refs/heads/master: e0edd5962bd83d319aaa50b39580dc30299a7fe3
22 changes: 13 additions & 9 deletions trunk/fs/xfs/linux-2.6/xfs_ioctl32.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ xfs_ioctl32_flock(
copy_in_user(&p->l_pid, &p32->l_pid, sizeof(u32)) ||
copy_in_user(&p->l_pad, &p32->l_pad, 4*sizeof(u32)))
return -EFAULT;

return (unsigned long)p;
}

Expand Down Expand Up @@ -107,11 +107,15 @@ xfs_ioctl32_bulkstat(
#endif

STATIC long
xfs_compat_ioctl(int mode, struct file *f, unsigned cmd, unsigned long arg)
xfs_compat_ioctl(
int mode,
struct file *file,
unsigned cmd,
unsigned long arg)
{
struct inode *inode = file->f_dentry->d_inode;
vnode_t *vp = vn_from_inode(inode);
int error;
struct inode *inode = f->f_dentry->d_inode;
vnode_t *vp = vn_to_inode(inode);

switch (cmd) {
case XFS_IOC_DIOINFO:
Expand Down Expand Up @@ -189,26 +193,26 @@ xfs_compat_ioctl(int mode, struct file *f, unsigned cmd, unsigned long arg)
return -ENOIOCTLCMD;
}

VOP_IOCTL(vp, inode, f, mode, cmd, (void __user *)arg, error);
VOP_IOCTL(vp, inode, file, mode, cmd, (void __user *)arg, error);
VMODIFY(vp);

return error;
}

long
xfs_file_compat_ioctl(
struct file *f,
struct file *file,
unsigned cmd,
unsigned long arg)
{
return xfs_compat_ioctl(0, f, cmd, arg);
return xfs_compat_ioctl(0, file, cmd, arg);
}

long
xfs_file_compat_invis_ioctl(
struct file *f,
struct file *file,
unsigned cmd,
unsigned long arg)
{
return xfs_compat_ioctl(IO_INVIS, f, cmd, arg);
return xfs_compat_ioctl(IO_INVIS, file, cmd, arg);
}

0 comments on commit bcf0246

Please sign in to comment.