summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2022-07-14 11:15:57 -0700
committerDarrick J. Wong <djwong@kernel.org>2022-11-09 19:08:08 -0800
commit6d62698167e61cf92b825065b5a553184b980927 (patch)
tree996c0706215792304cd77b69ece9ee8340c09a12
parentf611fc6f48a9a0c3c005820a803d956bda4ad26c (diff)
xfs: support recovering refcount intent items targetting realtime extents
Now that we have reflink on the realtime device, refcount intent items have to support remapping extents on the realtime volume. Signed-off-by: Darrick J. Wong <djwong@kernel.org>
-rw-r--r--fs/xfs/xfs_refcount_item.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/xfs_refcount_item.c b/fs/xfs/xfs_refcount_item.c
index feb21c1ac582..ad442d850fec 100644
--- a/fs/xfs/xfs_refcount_item.c
+++ b/fs/xfs/xfs_refcount_item.c
@@ -482,6 +482,9 @@ xfs_cui_validate_phys(
return false;
}
+ if (pmap->pe_flags & XFS_REFCOUNT_EXTENT_REALTIME)
+ return xfs_verify_rtbext(mp, pmap->pe_startblock, pmap->pe_len);
+
return xfs_verify_fsbext(mp, pmap->pe_startblock, pmap->pe_len);
}