]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs_scrub: scrub realtime allocation group metadata
authorDarrick J. Wong <djwong@kernel.org>
Thu, 21 Nov 2024 00:24:40 +0000 (16:24 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 28 Nov 2024 02:33:19 +0000 (18:33 -0800)
commitef9a73a5c83e3de40da5d88dc92e997627e4441d
tree90ec029908b0f6ae93b564d7159804c53ded62a6
parent7a7f320ec877dc990b61d2673b45425c709b7e31
xfs_scrub: scrub realtime allocation group metadata

Scan realtime group metadata as part of phase 2, just like we do for AG
metadata.  For pre-rtgroup filesystems, pretend that this is a "rtgroup
0" scrub request because the kernel expects that.  Replace the old
cond_wait code with a scrub barrier because they're equivalent for two
items that cannot be scrubbed in parallel.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
libfrog/scrub.c
scrub/phase2.c
scrub/scrub.c
scrub/scrub.h