diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-08-17 13:09:26 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-08-19 10:07:10 -0700 |
commit | f93f85f77aa80f3e4d5bada01248c98da32933c5 (patch) | |
tree | 031714f45ad677d0c59bc8ecd98bb687d1fd2449 /fs/xfs/libxfs | |
parent | c23460ebd54c00dfca643397cf5b8bb924ced70b (diff) | |
download | linux-f93f85f77aa80f3e4d5bada01248c98da32933c5.tar.bz2 |
xfs: resolve fork names in trace output
Emit whichfork values as text strings in the ftrace output.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Diffstat (limited to 'fs/xfs/libxfs')
-rw-r--r-- | fs/xfs/libxfs/xfs_types.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_types.h b/fs/xfs/libxfs/xfs_types.h index 0870ef6f933d..b6da06b40989 100644 --- a/fs/xfs/libxfs/xfs_types.h +++ b/fs/xfs/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. */ |