struct xfs_rtgroup *rtg;
xfs_rgnumber_t rgno;
- for_each_rtgroup(mp, rgno, rtg) {
- struct xfs_ag_rmap *ar = rmaps_for_group(true, rtg->rtg_rgno);
+ if (xfs_has_rtgroups(mp)) {
+ for_each_rtgroup(mp, rgno, rtg) {
+ struct xfs_ag_rmap *ar = rmaps_for_group(true, rtg->rtg_rgno);
- ar->rg_rmap_ino = NULLFSINO;
- }
+ ar->rg_rmap_ino = NULLFSINO;
+ }
- bitmap_clear(rmap_inodes, 0, XFS_MAXINUMBER);
+ bitmap_clear(rmap_inodes, 0, XFS_MAXINUMBER);
+ }
rmapbt_suspect = true;
}
struct xfs_rtgroup *rtg;
xfs_rgnumber_t rgno;
- for_each_rtgroup(mp, rgno, rtg) {
- struct xfs_ag_rmap *ar = rmaps_for_group(true, rtg->rtg_rgno);
+ if (xfs_has_rtgroups(mp)) {
+ for_each_rtgroup(mp, rgno, rtg) {
+ struct xfs_ag_rmap *ar = rmaps_for_group(true, rtg->rtg_rgno);
- ar->rg_refcount_ino = NULLFSINO;
- }
+ ar->rg_refcount_ino = NULLFSINO;
+ }
- bitmap_clear(refcount_inodes, 0, XFS_MAXINUMBER);
+ bitmap_clear(refcount_inodes, 0, XFS_MAXINUMBER);
+ }
refcbt_suspect = true;
}