mirror of
https://github.com/torvalds/linux
synced 2024-07-22 11:10:46 +00:00
![Kent Overstreet](/assets/img/avatar_default.png)
We're going to be using bch2_target_to_text() -> bch2_disk_path_to_text() from bch2_bkey_ptrs_to_text() and bch2_bkey_ptrs_invalid(), which can be called in any context. This patch adds the actual label to bch_disk_group_cpu so that it can be used by bch2_disk_path_to_text, and splits out bch2_disk_path_to_text() into two variants - like the previous patch, one for when we have a running filesystem and another for when we only have a superblock. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
19 lines
415 B
C
19 lines
415 B
C
/* 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 */
|