xfs: refactor domain and refcount checking
authorDarrick J. Wong <djwong@kernel.org>
Wed, 26 Oct 2022 21:31:27 +0000 (14:31 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 31 Oct 2022 15:58:21 +0000 (08:58 -0700)
commitf492135df0aa0417337f9b8b1cc6d6a994d61d25
treeabcd902f27b79369f061dc278aa150e3d09b18d2
parent571423a162cd86acb1b010a01c6203369586daa6
xfs: refactor domain and refcount checking

Create a helper function to ensure that CoW staging extent records have
a single refcount and that shared extent records have more than 1
refcount.  We'll put this to more use in the next patch.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/libxfs/xfs_refcount.c
fs/xfs/libxfs/xfs_refcount.h
fs/xfs/scrub/refcount.c