summaryrefslogtreecommitdiffstats
path: root/fs/xfs/libxfs/xfs_bmap.h
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2024-02-22 12:43:53 -0800
committerDarrick J. Wong <djwong@kernel.org>2024-02-22 12:43:53 -0800
commit2a15e7686094d1362b5026533b96f57ec989a245 (patch)
treeb5044f6850dbd17a0177c09e305bd23b6fd4700c /fs/xfs/libxfs/xfs_bmap.h
parentef2d4a00df38dfa79ce08fbd8c03278e2d87126a (diff)
downloadlinux-stable-2a15e7686094d1362b5026533b96f57ec989a245.tar.gz
linux-stable-2a15e7686094d1362b5026533b96f57ec989a245.tar.bz2
linux-stable-2a15e7686094d1362b5026533b96f57ec989a245.zip
xfs: clean up bmap log intent item tracepoint callsites
Pass the incore bmap structure to the tracepoints instead of open-coding the argument passing. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/libxfs/xfs_bmap.h')
-rw-r--r--fs/xfs/libxfs/xfs_bmap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_bmap.h b/fs/xfs/libxfs/xfs_bmap.h
index 10b85865204d..0a2fd9304d1c 100644
--- a/fs/xfs/libxfs/xfs_bmap.h
+++ b/fs/xfs/libxfs/xfs_bmap.h
@@ -232,6 +232,10 @@ enum xfs_bmap_intent_type {
XFS_BMAP_UNMAP,
};
+#define XFS_BMAP_INTENT_STRINGS \
+ { XFS_BMAP_MAP, "map" }, \
+ { XFS_BMAP_UNMAP, "unmap" }
+
struct xfs_bmap_intent {
struct list_head bi_list;
enum xfs_bmap_intent_type bi_type;