xfs: don't stall cowblocks scan if we can't take locks
authorDarrick J. Wong <djwong@kernel.org>
Sat, 23 Jan 2021 00:48:35 +0000 (16:48 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 3 Feb 2021 17:18:49 +0000 (09:18 -0800)
commitf41a0716f4b08678a73173d71ff3f409b996df2d
tree728234ab4e24393a45fd8c6c918296321fc9258c
parenta636b1d1cf73804e385990c975e33cf06c032b64
xfs: don't stall cowblocks scan if we can't take locks

Don't stall the cowblocks scan on a locked inode if we possibly can.
We'd much rather the background scanner keep moving.

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