summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/agheader_repair.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2019-01-16 10:12:15 -0800
committerDarrick J. Wong <darrick.wong@oracle.com>2019-04-26 21:36:41 -0700
commita6646e4de2ece7020adffade222493ee8eb0757d (patch)
tree701a4d022742c0a81216480495ffeea56dfb2bd6 /fs/xfs/scrub/agheader_repair.c
parentc06b06ff14f2cd99a43af79b863bb5f9aa0856f8 (diff)
xfs: add online scrub for superblock countersscrub-summary-counters_2019-04-26
Teach online scrub how to check the filesystem summary counters. We use the incore delalloc block counter along with the incore AG headers to compute expected values for fdblocks, icount, and ifree, and then check that the percpu counter is within a certain threshold of the expected value. This is done to avoid having to freeze or otherwise lock the filesystem, which means that we're only checking that the counters are fairly close, not that they're exactly correct. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/scrub/agheader_repair.c')
0 files changed, 0 insertions, 0 deletions