1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _BCACHEFS_SUPER_TYPES_H
3 #define _BCACHEFS_SUPER_TYPES_H
7 struct bdev_handle *bdev_handle;
8 struct block_device *bdev;
14 unsigned have_layout:1;
20 struct bch_devs_mask {
21 unsigned long d[BITS_TO_LONGS(BCH_SB_MEMBERS_MAX)];
24 struct bch_devs_list {
26 u8 data[BCH_BKEY_PTRS_MAX];
29 struct bch_member_cpu {
30 u64 nbuckets; /* device size */
31 u16 first_bucket; /* index of first bucket used */
32 u16 bucket_size; /* sectors */
38 u8 freespace_initialized;
42 #endif /* _BCACHEFS_SUPER_TYPES_H */