mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-01-22 00:04:31 +03:00
7a716b76b5
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
19 lines
405 B
C
19 lines
405 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _BCACHEFS_BBPOS_TYPES_H
|
|
#define _BCACHEFS_BBPOS_TYPES_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, SPOS_MAX)
|
|
|
|
#endif /* _BCACHEFS_BBPOS_TYPES_H */
|