]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: add rtgroup-based realtime scrubbing context management
authorDarrick J. Wong <djwong@kernel.org>
Mon, 4 Nov 2024 04:19:06 +0000 (20:19 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 5 Nov 2024 21:38:36 +0000 (13:38 -0800)
commitcd5b26f0c099a8fd60181978a45ea81b6569c5a7
tree532265e4bc649e09b796ffc65918799f52a7f3ab
parent65b1231b8cea7fbe7362dceecfda76026d335536
xfs: add rtgroup-based realtime scrubbing context management

Create a state tracking structure and helpers to initialize the tracking
structure so that we can check metadata records against the realtime
space management metadata.  Right now this is limited to grabbing the
incore rtgroup object, but we'll eventually add to the tracking
structure the ILOCK state and btree cursors.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/scrub/common.c
fs/xfs/scrub/common.h
fs/xfs/scrub/repair.c
fs/xfs/scrub/repair.h
fs/xfs/scrub/scrub.c
fs/xfs/scrub/scrub.h