]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: move XFS_AG_BTREE_CMP_FORMAT_STR mappings to libxfs
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 27 Feb 2019 23:13:45 +0000 (17:13 -0600)
committerEric Sandeen <sandeen@redhat.com>
Wed, 27 Feb 2019 23:13:45 +0000 (17:13 -0600)
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 <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_types.h

index 9a6541872ec10129b0ab25b0522c1e9fea09d04a..6da6ce7ab5d282a8557144b23585284966ba42a8 100644 (file)
@@ -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