xfs: in _attrlist_by_handle, copy the cursor back to userspace
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 3 Aug 2016 00:58:53 +0000 (10:58 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 3 Aug 2016 00:58:53 +0000 (10:58 +1000)
commit0facef7fb053be4353c0a48c2f48c9dbee91cb19
treec94892ed9bf47a98a5c0f2d9deff4cdc6f4d375a
parentf2bdfda9a1c668539bc85baf5625f6f14bc510b1
xfs: in _attrlist_by_handle, copy the cursor back to userspace

When we're iterating inode xattrs by handle, we have to copy the
cursor back to userspace so that a subsequent invocation actually
retrieves subsequent contents.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_ioctl.c