]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: refactor domain and refcount checking
authorDarrick J. Wong <djwong@kernel.org>
Fri, 18 Nov 2022 11:23:57 +0000 (12:23 +0100)
committerCarlos Maiolino <cem@kernel.org>
Mon, 21 Nov 2022 14:26:48 +0000 (15:26 +0100)
commitcc2a3c2ad943323ebfa4a105b83ba9b76517ae87
tree6b4543fb4c16802938df43c7041e2b15734f2cc4
parent8160aeff0888790af64dcf493fdebb9c65ecc544
xfs: refactor domain and refcount checking

Source kernel commit: f492135df0aa0417337f9b8b1cc6d6a994d61d25

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>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
libxfs/xfs_refcount.c
libxfs/xfs_refcount.h