diff options
Diffstat (limited to 'libbcachefs/bbpos.h')
-rw-r--r-- | libbcachefs/bbpos.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/libbcachefs/bbpos.h b/libbcachefs/bbpos.h index 0038bc28..be2edced 100644 --- a/libbcachefs/bbpos.h +++ b/libbcachefs/bbpos.h @@ -2,22 +2,10 @@ #ifndef _BCACHEFS_BBPOS_H #define _BCACHEFS_BBPOS_H +#include "bbpos_types.h" #include "bkey_methods.h" #include "btree_cache.h" -struct bbpos { - enum btree_id btree; - struct bpos pos; -}; - -static inline struct bbpos BBPOS(enum btree_id btree, struct bpos pos) -{ - return (struct bbpos) { btree, pos }; -} - -#define BBPOS_MIN BBPOS(0, POS_MIN) -#define BBPOS_MAX BBPOS(BTREE_ID_NR - 1, POS_MAX) - static inline int bbpos_cmp(struct bbpos l, struct bbpos r) { return cmp_int(l.btree, r.btree) ?: bpos_cmp(l.pos, r.pos); |