From: Darrick J. Wong Date: Fri, 18 Nov 2022 11:23:57 +0000 (+0100) Subject: xfs: report refcount domain in tracepoints X-Git-Tag: origin/for-next_2022-11-30~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8160aeff0888790af64dcf493fdebb9c65ecc544;p=thirdparty%2Fxfsprogs-dev.git xfs: report refcount domain in tracepoints 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 Reviewed-by: Dave Chinner Signed-off-by: Carlos Maiolino --- diff --git a/libxfs/xfs_types.h b/libxfs/xfs_types.h index eb9a98338..5ebdda7e1 100644 --- a/libxfs/xfs_types.h +++ b/libxfs/xfs_types.h @@ -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 */