xfs: create a macro for decoding ftypes in tracepoints
authorDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:30:50 +0000 (12:30 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:30:50 +0000 (12:30 -0800)
commit3c79e6a87221e063064e3680946a8b4bcd9fe78d
tree43b624cdc2a022d751c1d3648591cf18ec488651
parentd9c0775897147bab54410611ac2659a7477c770c
xfs: create a macro for decoding ftypes in tracepoints

Create the XFS_DIR3_FTYPE_STR macro so that we can report ftype as
strings instead of numbers in tracepoints.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_da_format.h