diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:58:38 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-31 19:18:37 +0300 |
commit | 37707bb183b4746f27b0beaf0c3273fd7c79dc66 (patch) | |
tree | 68f714f9891437374bc43b814083c64c3b3d9070 /fs/bcachefs/disk_groups_types.h | |
parent | bf0d9e89de2e62fe9967ebb77b68d58d3812e4db (diff) | |
download | linux-37707bb183b4746f27b0beaf0c3273fd7c79dc66.tar.xz |
bcachefs: Split out disk_groups_types.h
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/disk_groups_types.h')
-rw-r--r-- | fs/bcachefs/disk_groups_types.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/fs/bcachefs/disk_groups_types.h b/fs/bcachefs/disk_groups_types.h new file mode 100644 index 000000000000..55a67a4dca76 --- /dev/null +++ b/fs/bcachefs/disk_groups_types.h @@ -0,0 +1,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 */ |