xfs: streamline xfs_attr3_leaf_inactive
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 14 Jan 2020 22:31:49 +0000 (14:31 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 16 Jan 2020 16:07:23 +0000 (08:07 -0800)
commit0bb9d159bd018b271e783d3b2d3bc82fa0727321
treeb46adf4937b198357d225c4f33caee8cff69af07
parente8db2aafcedb7d88320ab83f1000f1606b26d4d7
xfs: streamline xfs_attr3_leaf_inactive

Now that we know we don't have to take a transaction to stale the incore
buffers for a remote value, get rid of the unnecessary memory allocation
in the leaf walker and call the rmt_stale function directly.  Flatten
the loop while we're at it.

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