OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Jun 2017 10:06:03 +0000 (12:06 +0200)
commit1b03d85a4f37af5889d11c8a300423fbad45aea4
treee61e433c4f54939893523f2584f3c5d61405c815
parentc56605c69ba66087fafe609bb9f936501bc7162e
xfs: in _attrlist_by_handle, copy the cursor back to userspace

commit 0facef7fb053be4353c0a48c2f48c9dbee91cb19 upstream.

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>
Cc: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/xfs_ioctl.c