diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2019-04-26 03:26:24 +0200 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-04-30 17:19:13 +0200 |
commit | 75efa57d0bf5fcf650a183f0ce0dc011ba8c4bc8 (patch) | |
tree | d6dfd62d2680be7cdb73e61e857e833f12ae0a78 /fs/xfs/Makefile | |
parent | xfs: don't parse the mtpt mount option (diff) | |
download | linux-75efa57d0bf5fcf650a183f0ce0dc011ba8c4bc8.tar.xz linux-75efa57d0bf5fcf650a183f0ce0dc011ba8c4bc8.zip |
xfs: add online scrub for superblock counters
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>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'fs/xfs/Makefile')
-rw-r--r-- | fs/xfs/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/Makefile b/fs/xfs/Makefile index b20964e26a22..1dfc6df2e2bd 100644 --- a/fs/xfs/Makefile +++ b/fs/xfs/Makefile @@ -143,6 +143,7 @@ xfs-y += $(addprefix scrub/, \ common.o \ dabtree.o \ dir.o \ + fscounters.o \ health.o \ ialloc.o \ inode.o \ |