2022-10-24 00:39:22 +03:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2018-11-04 03:11:29 +03:00
|
|
|
#ifndef _BCACHEFS_REPLICAS_TYPES_H
|
|
|
|
#define _BCACHEFS_REPLICAS_TYPES_H
|
|
|
|
|
|
|
|
struct bch_replicas_cpu {
|
|
|
|
unsigned nr;
|
|
|
|
unsigned entry_size;
|
2018-12-12 14:21:55 +03:00
|
|
|
struct bch_replicas_entry *entries;
|
2018-11-04 03:11:29 +03:00
|
|
|
};
|
|
|
|
|
2023-02-10 02:34:08 +03:00
|
|
|
struct replicas_delta {
|
|
|
|
s64 delta;
|
|
|
|
struct bch_replicas_entry r;
|
|
|
|
} __packed;
|
|
|
|
|
|
|
|
struct replicas_delta_list {
|
|
|
|
unsigned size;
|
|
|
|
unsigned used;
|
|
|
|
|
|
|
|
struct {} memset_start;
|
|
|
|
u64 nr_inodes;
|
|
|
|
u64 persistent_reserved[BCH_REPLICAS_MAX];
|
|
|
|
struct {} memset_end;
|
|
|
|
struct replicas_delta d[0];
|
|
|
|
};
|
|
|
|
|
2018-11-04 03:11:29 +03:00
|
|
|
#endif /* _BCACHEFS_REPLICAS_TYPES_H */
|