diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-07-14 11:15:57 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-11-09 19:08:08 -0800 |
commit | 6d62698167e61cf92b825065b5a553184b980927 (patch) | |
tree | 996c0706215792304cd77b69ece9ee8340c09a12 | |
parent | f611fc6f48a9a0c3c005820a803d956bda4ad26c (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.c | 3 |
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); } |