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>
This commit is contained in:
Dave Chinner
2019-08-29 09:04:09 -07:00
committed by Darrick J. Wong
parent a0e959d3c9
commit e3cc4554ce
2 changed files with 2 additions and 16 deletions

View File

@@ -2410,7 +2410,7 @@ xfs_attr3_leaf_getvalue(
return -ERANGE;
}
args->valuelen = args->rmtvaluelen;
return 0;
return xfs_attr_rmtval_get(args);
}
/*========================================================================