summaryrefslogtreecommitdiff
path: root/fs/bcachefs/disk_groups_types.h
blob: a54ef085b13d469828bfd5ea60e6686d745a7d73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _BCACHEFS_DISK_GROUPS_TYPES_H
#define _BCACHEFS_DISK_GROUPS_TYPES_H

struct bch_disk_group_cpu {
	bool				deleted;
	u16				parent;
	u8				label[BCH_SB_LABEL_SIZE];
	struct bch_devs_mask		devs;
};

struct bch_disk_groups_cpu {
	struct rcu_head			rcu;
	unsigned			nr;
	struct bch_disk_group_cpu	entries[] __counted_by(nr);
};

#endif /* _BCACHEFS_DISK_GROUPS_TYPES_H */