xfs: replace the XFS_IOC_GETPARENTS backend

Now that xfs_attr_list can pass local xattr values to the put_listent
function, build a new version of the GETPARENTS backend that supplies a
custom put_listent function to format parent pointer info directly into
the caller's buffer.  This uses a lot less memory and obviates the
iterate list and then grab the values logic, since parent pointers
aren't supposed to have remote values anyway.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
7 files changed