From: Darrick J. Wong Date: Mon, 31 Jan 2022 20:25:48 +0000 (-0500) Subject: xfs: resolve fork names in trace output X-Git-Tag: v5.15.0-rc0~26 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=b4751eea264a40122367d5996b022392cc69c58e;p=thirdparty%2Fxfsprogs-dev.git xfs: resolve fork names in trace output Source kernel commit: f93f85f77aa80f3e4d5bada01248c98da32933c5 Emit whichfork values as text strings in the ftrace output. Signed-off-by: Darrick J. Wong Reviewed-by: Dave Chinner Reviewed-by: Carlos Maiolino Signed-off-by: Darrick J. Wong Signed-off-by: Eric Sandeen --- diff --git a/libxfs/xfs_types.h b/libxfs/xfs_types.h index 0870ef6f9..b6da06b40 100644 --- a/libxfs/xfs_types.h +++ b/libxfs/xfs_types.h @@ -87,6 +87,11 @@ typedef void * xfs_failaddr_t; #define XFS_ATTR_FORK 1 #define XFS_COW_FORK 2 +#define XFS_WHICHFORK_STRINGS \ + { XFS_DATA_FORK, "data" }, \ + { XFS_ATTR_FORK, "attr" }, \ + { XFS_COW_FORK, "cow" } + /* * Min numbers of data/attr fork btree root pointers. */