[PATCHSET v9r2d1 0/3] xfs: use flex arrays for XFS_IOC_GETPARENTS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

Change the XFS_IOC_GETPARENTS structure definitions so that we can pack
parent pointer information more densely, in a manner similar to the
attrlistmulti ioctl.  This also reduces the amount of memory that has to
be copied back to userspace if the buffer doesn't fill up.

If you're going to start using this mess, you probably ought to just
pull from my git trees, which are linked below.

This is an extraordinary way to destroy everything.  Enjoy!
Comments and questions are, as always, welcome.
kernel git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=pptrs-ioctl-flexarray

xfsprogs git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=pptrs-ioctl-flexarray

fstests git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfstests-dev.git/log/?h=pptrs-ioctl-flexarray
---
 fs/xfs/libxfs/xfs_fs.h    |   75 ++++++++++++++++++++-------------------------
 fs/xfs/xfs_ioctl.c        |   67 +++++++++++++++++++++++++++++-----------
 fs/xfs/xfs_ondisk.h       |    4 +-
 fs/xfs/xfs_parent_utils.c |   57 +++++++++++++++++++++-------------
 fs/xfs/xfs_parent_utils.h |   11 ++++++-
 fs/xfs/xfs_trace.h        |   30 +++++++++---------
 6 files changed, 143 insertions(+), 101 deletions(-)




[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux