]> Git Repo - linux.git/blob - fs/bcachefs/bbpos_types.h
Merge tag 'nfsd-6.7-1' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux
[linux.git] / fs / bcachefs / bbpos_types.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _BCACHEFS_BBPOS_TYPES_H
3 #define _BCACHEFS_BBPOS_TYPES_H
4
5 struct bbpos {
6         enum btree_id           btree;
7         struct bpos             pos;
8 };
9
10 static inline struct bbpos BBPOS(enum btree_id btree, struct bpos pos)
11 {
12         return (struct bbpos) { btree, pos };
13 }
14
15 #define BBPOS_MIN       BBPOS(0, POS_MIN)
16 #define BBPOS_MAX       BBPOS(BTREE_ID_NR - 1, POS_MAX)
17
18 #endif /* _BCACHEFS_BBPOS_TYPES_H */
This page took 0.032509 seconds and 4 git commands to generate.