diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-07-29 11:06:31 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-10-14 14:16:28 -0700 |
commit | cb10a8cc2cf30599a3efcea2abb52cdaa7d37741 (patch) | |
tree | 89dd4fb40886ccb204aff46a389755e1f172b5ce | |
parent | 7897f454fa9e51d33e4ec5fa22107125bfd93240 (diff) |
xfs: check that CoW fork extents are not shared
Ensure that extents in an inode's CoW fork are not marked as shared in
the refcount btree.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
-rw-r--r-- | fs/xfs/scrub/bmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/scrub/bmap.c b/fs/xfs/scrub/bmap.c index 6986aef80002..c3dd231eea1c 100644 --- a/fs/xfs/scrub/bmap.c +++ b/fs/xfs/scrub/bmap.c @@ -338,6 +338,8 @@ xchk_bmap_iextent_xref( case XFS_COW_FORK: xchk_xref_is_cow_staging(info->sc, agbno, irec->br_blockcount); + xchk_xref_is_not_shared(info->sc, agbno, + irec->br_blockcount); break; } |