From 8160aeff0888790af64dcf493fdebb9c65ecc544 Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Fri, 18 Nov 2022 12:23:57 +0100 Subject: [PATCH] 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 --- libxfs/xfs_types.h | 4 ++++ 1 file changed, 4 insertions(+) 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 */ -- 2.39.5