diff options
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_ioctl32.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_ioctl32.c | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/fs/xfs/linux-2.6/xfs_ioctl32.c b/fs/xfs/linux-2.6/xfs_ioctl32.c index 9287135e9bfc..6c83f7f62dc9 100644 --- a/fs/xfs/linux-2.6/xfs_ioctl32.c +++ b/fs/xfs/linux-2.6/xfs_ioctl32.c | |||
@@ -28,12 +28,8 @@ | |||
28 | #include "xfs_trans.h" | 28 | #include "xfs_trans.h" |
29 | #include "xfs_sb.h" | 29 | #include "xfs_sb.h" |
30 | #include "xfs_ag.h" | 30 | #include "xfs_ag.h" |
31 | #include "xfs_dir2.h" | ||
32 | #include "xfs_dmapi.h" | ||
33 | #include "xfs_mount.h" | 31 | #include "xfs_mount.h" |
34 | #include "xfs_bmap_btree.h" | 32 | #include "xfs_bmap_btree.h" |
35 | #include "xfs_attr_sf.h" | ||
36 | #include "xfs_dir2_sf.h" | ||
37 | #include "xfs_vnode.h" | 33 | #include "xfs_vnode.h" |
38 | #include "xfs_dinode.h" | 34 | #include "xfs_dinode.h" |
39 | #include "xfs_inode.h" | 35 | #include "xfs_inode.h" |
@@ -237,15 +233,12 @@ xfs_bulkstat_one_compat( | |||
237 | xfs_ino_t ino, /* inode number to get data for */ | 233 | xfs_ino_t ino, /* inode number to get data for */ |
238 | void __user *buffer, /* buffer to place output in */ | 234 | void __user *buffer, /* buffer to place output in */ |
239 | int ubsize, /* size of buffer */ | 235 | int ubsize, /* size of buffer */ |
240 | void *private_data, /* my private data */ | ||
241 | xfs_daddr_t bno, /* starting bno of inode cluster */ | ||
242 | int *ubused, /* bytes used by me */ | 236 | int *ubused, /* bytes used by me */ |
243 | void *dibuff, /* on-disk inode buffer */ | ||
244 | int *stat) /* BULKSTAT_RV_... */ | 237 | int *stat) /* BULKSTAT_RV_... */ |
245 | { | 238 | { |
246 | return xfs_bulkstat_one_int(mp, ino, buffer, ubsize, | 239 | return xfs_bulkstat_one_int(mp, ino, buffer, ubsize, |
247 | xfs_bulkstat_one_fmt_compat, bno, | 240 | xfs_bulkstat_one_fmt_compat, |
248 | ubused, dibuff, stat); | 241 | ubused, stat); |
249 | } | 242 | } |
250 | 243 | ||
251 | /* copied from xfs_ioctl.c */ | 244 | /* copied from xfs_ioctl.c */ |
@@ -298,13 +291,11 @@ xfs_compat_ioc_bulkstat( | |||
298 | int res; | 291 | int res; |
299 | 292 | ||
300 | error = xfs_bulkstat_one_compat(mp, inlast, bulkreq.ubuffer, | 293 | error = xfs_bulkstat_one_compat(mp, inlast, bulkreq.ubuffer, |
301 | sizeof(compat_xfs_bstat_t), | 294 | sizeof(compat_xfs_bstat_t), 0, &res); |
302 | NULL, 0, NULL, NULL, &res); | ||
303 | } else if (cmd == XFS_IOC_FSBULKSTAT_32) { | 295 | } else if (cmd == XFS_IOC_FSBULKSTAT_32) { |
304 | error = xfs_bulkstat(mp, &inlast, &count, | 296 | error = xfs_bulkstat(mp, &inlast, &count, |
305 | xfs_bulkstat_one_compat, NULL, | 297 | xfs_bulkstat_one_compat, sizeof(compat_xfs_bstat_t), |
306 | sizeof(compat_xfs_bstat_t), bulkreq.ubuffer, | 298 | bulkreq.ubuffer, &done); |
307 | BULKSTAT_FG_QUICK, &done); | ||
308 | } else | 299 | } else |
309 | error = XFS_ERROR(EINVAL); | 300 | error = XFS_ERROR(EINVAL); |
310 | if (error) | 301 | if (error) |
@@ -549,7 +540,7 @@ xfs_file_compat_ioctl( | |||
549 | if (filp->f_mode & FMODE_NOCMTIME) | 540 | if (filp->f_mode & FMODE_NOCMTIME) |
550 | ioflags |= IO_INVIS; | 541 | ioflags |= IO_INVIS; |
551 | 542 | ||
552 | xfs_itrace_entry(ip); | 543 | trace_xfs_file_compat_ioctl(ip); |
553 | 544 | ||
554 | switch (cmd) { | 545 | switch (cmd) { |
555 | /* No size or alignment issues on any arch */ | 546 | /* No size or alignment issues on any arch */ |