]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: report refcount domain in tracepoints
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)
Source kernel commit: 571423a162cd86acb1b010a01c6203369586daa6

Now that we've broken out the startblock and shared/cow domain in the
incore refcount extent record structure, update the tracepoints to
report the domain.

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_types.h

index eb9a98338bb9827e04bc739477d2b7fec53db023..5ebdda7e10780579592cdb741bf158c0be97a0d2 100644 (file)
@@ -171,6 +171,10 @@ enum xfs_refc_domain {
        XFS_REFC_DOMAIN_COW,
 };
 
+#define XFS_REFC_DOMAIN_STRINGS \
+       { XFS_REFC_DOMAIN_SHARED,       "shared" }, \
+       { XFS_REFC_DOMAIN_COW,          "cow" }
+
 struct xfs_refcount_irec {
        xfs_agblock_t   rc_startblock;  /* starting block number */
        xfs_extlen_t    rc_blockcount;  /* count of free blocks */