1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _BCACHEFS_BBPOS_TYPES_H
3 #define _BCACHEFS_BBPOS_TYPES_H
10 static inline struct bbpos BBPOS(enum btree_id btree, struct bpos pos)
12 return (struct bbpos) { btree, pos };
15 #define BBPOS_MIN BBPOS(0, POS_MIN)
16 #define BBPOS_MAX BBPOS(BTREE_ID_NR - 1, POS_MAX)
18 #endif /* _BCACHEFS_BBPOS_TYPES_H */