xfs: don't bounce the iolock between free_{eof,cow}blocks
authorDarrick J. Wong <djwong@kernel.org>
Tue, 26 Jan 2021 05:09:49 +0000 (21:09 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 3 Feb 2021 17:18:50 +0000 (09:18 -0800)
commit0fa4a10a2f5f96a06373ea81f8cd5f97c5cc264f
treebdff5ecfbd5d0e0f7770252dd2a50d829bc37a5b
parent47bd6d3457fb96d287278027aed8a78d14f1d32d
xfs: don't bounce the iolock between free_{eof,cow}blocks

Since xfs_inode_free_eofblocks and xfs_inode_free_cowblocks are now
internal static functions, we can save ourselves a cycling of the iolock
by passing the lock state out to xfs_blockgc_scan_inode and letting it
do all the unlocking.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_icache.c