Commit 31785537 authored by Darrick J. Wong's avatar Darrick J. Wong
Browse files

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: default avatarDarrick J. Wong <djwong@kernel.org>
Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
parent f23c4044
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
	}