]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: add missing early termination checks to record scrubbing functions
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 5 Nov 2019 23:33:56 +0000 (15:33 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 6 Nov 2019 16:07:41 +0000 (08:07 -0800)
commit495a5b09d07a904d48ac8712f65ab18ac88b8882
tree910a606ad3a211a09a42131cde6e63bbb883b69b
parent7357ef29997b202924ff460be2547d73f121daac
xfs: add missing early termination checks to record scrubbing functions

Scrubbing directories, quotas, and fs counters all involve iterating
some collection of metadata items.  The per-item scrub functions for
these three are missing some of the components they need to be able to
check for a fatal signal and terminate early.

Per-item scrub functions need to call xchk_should_terminate to look for
fatal signals, and they need to check the scrub context's corruption
flag because there's no point in continuing a scan once we've decided
the data structure is bad.  Add both of these where missing.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/scrub/dir.c
fs/xfs/scrub/fscounters.c
fs/xfs/scrub/quota.c