From: Darrick J. Wong Date: Wed, 27 Feb 2019 23:13:45 +0000 (-0600) Subject: xfs: move XFS_AG_BTREE_CMP_FORMAT_STR mappings to libxfs X-Git-Tag: v5.0.0-rc1~58 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a47d8371ee17c406d71e38e859ee6f890c135537;p=thirdparty%2Fxfsprogs-dev.git xfs: move XFS_AG_BTREE_CMP_FORMAT_STR mappings to libxfs Source kernel commit: 05c753c4cf53f51a7e35fcfe684500113cf1fd13 Move XFS_AG_BTREE_CMP_FORMAT_STR to libxfs so that we don't forget to keep it updated, and TRACE_DEFINE_ENUM the values while we're at it. Signed-off-by: Darrick J. Wong Reviewed-by: Eric Sandeen Signed-off-by: Eric Sandeen --- diff --git a/libxfs/xfs_types.h b/libxfs/xfs_types.h index 9a6541872..6da6ce7ab 100644 --- a/libxfs/xfs_types.h +++ b/libxfs/xfs_types.h @@ -108,6 +108,11 @@ typedef enum { XFS_LOOKUP_EQi, XFS_LOOKUP_LEi, XFS_LOOKUP_GEi } xfs_lookup_t; +#define XFS_AG_BTREE_CMP_FORMAT_STR \ + { XFS_LOOKUP_EQi, "eq" }, \ + { XFS_LOOKUP_LEi, "le" }, \ + { XFS_LOOKUP_GEi, "ge" } + typedef enum { XFS_BTNUM_BNOi, XFS_BTNUM_CNTi, XFS_BTNUM_RMAPi, XFS_BTNUM_BMAPi, XFS_BTNUM_INOi, XFS_BTNUM_FINOi, XFS_BTNUM_REFCi, XFS_BTNUM_MAX