libfrog: enable scrubbng of the realtime rmap
authorDarrick J. Wong <djwong@kernel.org>
Wed, 3 Jul 2024 21:22:21 +0000 (14:22 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 16 Jul 2024 22:49:20 +0000 (15:49 -0700)
Add a new entry so that we can scrub the rtrmapbt.

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

index 86c3b9de296e04da5e9254bd8f5177371bab8b12..82abfca456ab9573526e6d744b576cea9913268f 100644 (file)
@@ -169,6 +169,11 @@ const struct xfrog_scrub_descr xfrog_scrubbers[XFS_SCRUB_TYPE_NR] = {
                .descr  = "realtime group bitmap",
                .group  = XFROG_SCRUB_GROUP_RTGROUP,
        },
+       [XFS_SCRUB_TYPE_RTRMAPBT] = {
+               .name   = "rtrmapbt",
+               .descr  = "realtime reverse mapping btree",
+               .group  = XFROG_SCRUB_GROUP_RTGROUP,
+       },
 };
 
 const struct xfrog_scrub_descr xfrog_metapaths[XFS_SCRUB_METAPATH_NR] = {
index c8cdb98de5457ba884cef4521d87eb0f09a3724e..e6906cbd37d0b32936ef23dc5c27bdef8605aeff 100644 (file)
@@ -533,6 +533,7 @@ repair_item_difficulty(
 
                switch (scrub_type) {
                case XFS_SCRUB_TYPE_RMAPBT:
+               case XFS_SCRUB_TYPE_RTRMAPBT:
                        ret |= REPAIR_DIFFICULTY_SECONDARY;
                        break;
                case XFS_SCRUB_TYPE_SB: