xfs: move remote attr retrieval into xfs_attr3_leaf_getvalue
authorDave Chinner <dchinner@redhat.com>
Thu, 29 Aug 2019 16:04:09 +0000 (09:04 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sat, 31 Aug 2019 05:43:57 +0000 (22:43 -0700)
commite3cc4554ce1b2cc43262c93ebe6d8cde780d29ee
tree05b320e331d3f5cdae95cd73a0b58619b3cbc9ac
parenta0e959d3c9d52a83e01a97ef352a1465550f9329
xfs: move remote attr retrieval into xfs_attr3_leaf_getvalue

Because we repeat exactly the same code to get the remote attribute
value after both calls to xfs_attr3_leaf_getvalue() if it's a remote
attr. Just do it in xfs_attr3_leaf_getvalue() so the callers don't
have to care about it.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_attr.c
fs/xfs/libxfs/xfs_attr_leaf.c