]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: trigger all block gc scans when low on quota space
authorDarrick J. Wong <djwong@kernel.org>
Sat, 23 Jan 2021 00:48:34 +0000 (16:48 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 3 Feb 2021 17:18:49 +0000 (09:18 -0800)
commita636b1d1cf73804e385990c975e33cf06c032b64
tree87efb6456611ce9a1282f06d35ad1886a789ba66
parent2a4bdfa8558ca2904dc17b83497dc82aa7fc05e9
xfs: trigger all block gc scans when low on quota space

The functions to run an eof/cowblocks scan to try to reduce quota usage
are kind of a mess -- the logic repeatedly initializes an eofb structure
and there are logic bugs in the code that result in the cowblocks scan
never actually happening.

Replace all three functions with a single function that fills out an
eofb and runs both eof and cowblocks scans.

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_file.c
fs/xfs/xfs_icache.c
fs/xfs/xfs_icache.h