summaryrefslogtreecommitdiff
path: root/fs/bcachefs/disk_groups_types.h
blob: 55a67a4dca767637e976ae538947c744c406c05f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* 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;
	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 */