Linux 6.13-rc4
[linux.git] / fs / bcachefs / super_types.h
blob368a63d938cfc910186fcf13ab9a7917868b269f
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _BCACHEFS_SUPER_TYPES_H
3 #define _BCACHEFS_SUPER_TYPES_H
5 struct bch_sb_handle {
6 struct bch_sb *sb;
7 struct file *s_bdev_file;
8 struct block_device *bdev;
9 char *sb_name;
10 struct bio *bio;
11 void *holder;
12 size_t buffer_size;
13 blk_mode_t mode;
14 unsigned have_layout:1;
15 unsigned have_bio:1;
16 unsigned fs_sb:1;
17 u64 seq;
20 struct bch_devs_mask {
21 unsigned long d[BITS_TO_LONGS(BCH_SB_MEMBERS_MAX)];
24 struct bch_devs_list {
25 u8 nr;
26 u8 data[BCH_BKEY_PTRS_MAX];
29 #endif /* _BCACHEFS_SUPER_TYPES_H */