summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2022-11-07 04:03:21 +0300
committerDarrick J. Wong <djwong@kernel.org>2022-11-17 02:25:04 +0300
commit31785537010a91a0d1dc403e5d049a38a3d4a30b (patch)
tree3f41c7cb7da4ed6e37ccb4bbb81891179adcd9b7
parentf23c40443d1c2af87c99c1424f9e43bbd7307f92 (diff)
downloadlinux-31785537010a91a0d1dc403e5d049a38a3d4a30b.tar.xz
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> Reviewed-by: Dave Chinner <dchinner@redhat.com>
-rw-r--r--fs/xfs/scrub/bmap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/scrub/bmap.c b/fs/xfs/scrub/bmap.c
index fa8f22ed057a..4bb6672b02ba 100644
--- a/fs/xfs/scrub/bmap.c
+++ b/fs/xfs/scrub/bmap.c
@@ -335,6 +335,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;
}