]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit95dc8e007174e7b98bd263fa597ada44e13f4138
treebdff5ecfbd5d0e0f7770252dd2a50d829bc37a5b
parentb9c63ec758b75a892bfebb4aae2825b62129aa11
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