]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: scrub the realtime refcount btree
authorDarrick J. Wong <djwong@kernel.org>
Thu, 21 Nov 2024 00:21:06 +0000 (16:21 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 23 Dec 2024 21:06:14 +0000 (13:06 -0800)
commitc27929670de144ec76a0dab2f3a168cb4897b314
tree12ccb2d8213e64b7d16af5cb2ff1038713435380
parent026c8ed8d4580228949f177445c605d475880c93
xfs: scrub the realtime refcount btree

Add code to scrub realtime refcount btrees.  Similar to the refcount
btree checking code for the data device, we walk the rmap btree for each
refcount record to confirm that the reference counts are correct.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/Makefile
fs/xfs/libxfs/xfs_fs.h
fs/xfs/scrub/common.c
fs/xfs/scrub/common.h
fs/xfs/scrub/health.c
fs/xfs/scrub/rtrefcount.c [new file with mode: 0644]
fs/xfs/scrub/scrub.c
fs/xfs/scrub/scrub.h
fs/xfs/scrub/stats.c
fs/xfs/scrub/trace.h