summaryrefslogtreecommitdiff
tag namedjwong-experimental_2019-04-15 (4d508227d215bae7d2bf5767564b4ec3c9fc37d8)
tag date2019-04-15 17:04:16 -0700
tagged byDarrick J. Wong <darrick.wong@oracle.com>
tagged objectcommit 4deb4cccf3...
xfs: online repair support (pt. 3)
This is the third part of the nineteenth revision of a patchset that adds to XFS kernel support for online metadata scrubbing and repair. There aren't any on-disk format changes. New for this version is a rebase against 5.1 and a total rewrite of the summary counter scrub code to avoid fs freezing by tracking delalloc blocks incore, and splitting the repair functionality into separate patches. Patch 1 implements an in-core counter for tracking delalloc blocks. Patch 2 teaches scrub to stop background reclamation activities. This isn't strictly necessary, but it reduces the amount of background noise that can throw off the fscounter checking. Patch 3 implement scrubbing of the summary counters. This latest iteration of the scrub code uses the incore delalloc counter and thresholding to eliminate the need to freeze the filesystem to check the counters. However, this comes at a cost of slightly reduced accuracy -- if we're only off by a little bit, the scrub won't notice. Patch 4 implements repair of the summary counters. This still uses the incore delalloc counter, but it freezes the filesystem to stop anyone else from making changes.