diff options
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_ioctl32.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_ioctl32.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/xfs/linux-2.6/xfs_ioctl32.c b/fs/xfs/linux-2.6/xfs_ioctl32.c index 42319d75aaab..83f509960305 100644 --- a/fs/xfs/linux-2.6/xfs_ioctl32.c +++ b/fs/xfs/linux-2.6/xfs_ioctl32.c | |||
@@ -43,6 +43,7 @@ | |||
43 | #include "xfs_itable.h" | 43 | #include "xfs_itable.h" |
44 | #include "xfs_error.h" | 44 | #include "xfs_error.h" |
45 | #include "xfs_dfrag.h" | 45 | #include "xfs_dfrag.h" |
46 | #include "xfs_vnodeops.h" | ||
46 | 47 | ||
47 | #define _NATIVE_IOC(cmd, type) \ | 48 | #define _NATIVE_IOC(cmd, type) \ |
48 | _IOC(_IOC_DIR(cmd), _IOC_TYPE(cmd), _IOC_NR(cmd), sizeof(type)) | 49 | _IOC(_IOC_DIR(cmd), _IOC_TYPE(cmd), _IOC_NR(cmd), sizeof(type)) |
@@ -443,7 +444,7 @@ xfs_compat_ioctl( | |||
443 | case XFS_IOC_FSBULKSTAT_SINGLE_32: | 444 | case XFS_IOC_FSBULKSTAT_SINGLE_32: |
444 | case XFS_IOC_FSINUMBERS_32: | 445 | case XFS_IOC_FSINUMBERS_32: |
445 | cmd = _NATIVE_IOC(cmd, struct xfs_fsop_bulkreq); | 446 | cmd = _NATIVE_IOC(cmd, struct xfs_fsop_bulkreq); |
446 | return xfs_ioc_bulkstat_compat(XFS_BHVTOI(VNHEAD(vp))->i_mount, | 447 | return xfs_ioc_bulkstat_compat(XFS_I(inode)->i_mount, |
447 | cmd, (void __user*)arg); | 448 | cmd, (void __user*)arg); |
448 | case XFS_IOC_FD_TO_HANDLE_32: | 449 | case XFS_IOC_FD_TO_HANDLE_32: |
449 | case XFS_IOC_PATH_TO_HANDLE_32: | 450 | case XFS_IOC_PATH_TO_HANDLE_32: |
@@ -457,7 +458,7 @@ xfs_compat_ioctl( | |||
457 | return -ENOIOCTLCMD; | 458 | return -ENOIOCTLCMD; |
458 | } | 459 | } |
459 | 460 | ||
460 | error = bhv_vop_ioctl(vp, inode, file, mode, cmd, (void __user *)arg); | 461 | error = xfs_ioctl(XFS_I(inode), file, mode, cmd, (void __user *)arg); |
461 | VMODIFY(vp); | 462 | VMODIFY(vp); |
462 | 463 | ||
463 | return error; | 464 | return error; |