]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: repair summary counters
authorDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:33:05 +0000 (12:33 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:33:05 +0000 (12:33 -0800)
commit4ed080cd7cb077bbb4b64f0712be1618c9d55a0d
treeae58915d05428b70e9b0f64e1966e9a5daf28234
parenta1f3e0cca41036c3c66abb6a2ed8fedc214e9a4c
xfs: repair summary counters

Use the same summary counter calculation infrastructure to generate new
values for the in-core summary counters.   The difference between the
scrubber and the repairer is that the repairer will freeze the fs during
setup, which means that the values should match exactly.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/Makefile
fs/xfs/scrub/fscounters.c
fs/xfs/scrub/fscounters.h [new file with mode: 0644]
fs/xfs/scrub/fscounters_repair.c [new file with mode: 0644]
fs/xfs/scrub/repair.h
fs/xfs/scrub/scrub.c
fs/xfs/scrub/trace.c
fs/xfs/scrub/trace.h