]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.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>
Tue, 24 Dec 2024 02:01:35 +0000 (18:01 -0800)
commit241d915d69d4ae9728e23cb69fbf176241293fca
treeff77404bda3dd822d66236cccab04299113711e1
parenta3c38eecc97b14e2620cac0e1374d5ef9753b755
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>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libfrog/scrub.c
scrub/phase2.c
scrub/scrub.c
scrub/scrub.h