summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_ioctl32.c
diff options
context:
space:
mode:
authorDarrick J. Wong2019-07-04 05:36:27 +0200
committerDarrick J. Wong2019-07-04 05:36:27 +0200
commit5f19c7fc6873351a3d81bbbb98c928343902d8d6 (patch)
treeb55f57cbbc13452bd06d5b42309459e34867fbb8 /fs/xfs/xfs_ioctl32.c
parentxfs: introduce new v5 bulkstat structure (diff)
downloadkernel-qcow2-linux-5f19c7fc6873351a3d81bbbb98c928343902d8d6.tar.gz
kernel-qcow2-linux-5f19c7fc6873351a3d81bbbb98c928343902d8d6.tar.xz
kernel-qcow2-linux-5f19c7fc6873351a3d81bbbb98c928343902d8d6.zip
xfs: introduce v5 inode group structure
Introduce a new "v5" inode group structure that fixes the alignment and padding problems of the existing structure. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_ioctl32.c')
-rw-r--r--fs/xfs/xfs_ioctl32.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/fs/xfs/xfs_ioctl32.c b/fs/xfs/xfs_ioctl32.c
index ed8e012dabbb..ca734381a557 100644
--- a/fs/xfs/xfs_ioctl32.c
+++ b/fs/xfs/xfs_ioctl32.c
@@ -81,10 +81,14 @@ xfs_compat_growfs_rt_copyin(
STATIC int
xfs_fsinumbers_fmt_compat(
- struct xfs_ibulk *breq,
- const struct xfs_inogrp *igrp)
+ struct xfs_ibulk *breq,
+ const struct xfs_inumbers *ig)
{
- struct compat_xfs_inogrp __user *p32 = breq->ubuffer;
+ struct compat_xfs_inogrp __user *p32 = breq->ubuffer;
+ struct xfs_inogrp ig1;
+ struct xfs_inogrp *igrp = &ig1;
+
+ xfs_inumbers_to_inogrp(&ig1, ig);
if (put_user(igrp->xi_startino, &p32->xi_startino) ||
put_user(igrp->xi_alloccount, &p32->xi_alloccount) ||