]> git.sesse.net Git - bcachefs-tools-debian/blob - c_src/libbcachefs/replicas_types.h
rust: bump rpassword to v7.x
[bcachefs-tools-debian] / c_src / libbcachefs / replicas_types.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _BCACHEFS_REPLICAS_TYPES_H
3 #define _BCACHEFS_REPLICAS_TYPES_H
4
5 struct bch_replicas_cpu {
6         unsigned                nr;
7         unsigned                entry_size;
8         struct bch_replicas_entry_v1 *entries;
9 };
10
11 struct replicas_delta {
12         s64                     delta;
13         struct bch_replicas_entry_v1 r;
14 } __packed;
15
16 struct replicas_delta_list {
17         unsigned                size;
18         unsigned                used;
19
20         struct                  {} memset_start;
21         u64                     nr_inodes;
22         u64                     persistent_reserved[BCH_REPLICAS_MAX];
23         struct                  {} memset_end;
24         struct replicas_delta   d[];
25 };
26
27 #endif /* _BCACHEFS_REPLICAS_TYPES_H */