On Tue, Nov 05, 2019 at 08:43:00PM -0800, Darrick J. Wong wrote: > From: Darrick J. Wong <darrick.wong@xxxxxxxxxx> > > 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. Looks sensible, but take this with a grain of salt as I'm not very familiar with the scrub code: Reviewed-by: Christoph Hellwig <hch@xxxxxx>