diff mbox series

[16/24] xfs: report refcount domain in tracepoints

Message ID 166795963186.3761583.1303087482752452396.stgit@magnolia (mailing list archive)
State Accepted, archived
Headers show
Series xfsprogs: sync with 6.1 | expand

Commit Message

Darrick J. Wong Nov. 9, 2022, 2:07 a.m. UTC
From: Darrick J. Wong <djwong@kernel.org>

Source kernel commit: 440759208b71e1854dfcb332434f9a41e9c8e432

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>
---
 libxfs/xfs_types.h |    4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/libxfs/xfs_types.h b/libxfs/xfs_types.h
index eb9a98338b..5ebdda7e10 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 */