xref: /linux/fs/bcachefs/disk_groups_types.h (revision 0ea5c948cb64bab5bc7a5516774eb8536f05aa0d)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _BCACHEFS_DISK_GROUPS_TYPES_H
3 #define _BCACHEFS_DISK_GROUPS_TYPES_H
4 
5 struct bch_disk_group_cpu {
6 	bool				deleted;
7 	u16				parent;
8 	u8				label[BCH_SB_LABEL_SIZE];
9 	struct bch_devs_mask		devs;
10 };
11 
12 struct bch_disk_groups_cpu {
13 	struct rcu_head			rcu;
14 	unsigned			nr;
15 	struct bch_disk_group_cpu	entries[] __counted_by(nr);
16 };
17 
18 #endif /* _BCACHEFS_DISK_GROUPS_TYPES_H */
19