1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _BUCKETS_TYPES_H
3 #define _BUCKETS_TYPES_H
5 #include "bcachefs_format.h"
8 #define BUCKET_JOURNAL_SEQ_BITS 16
27 struct bucket_mark _mark;
28 const struct bucket_mark mark;
53 struct bch_dev_usage {
55 u64 buckets_unavailable;
59 u64 sectors; /* _compressed_ sectors: */
62 * Why do we have this? Isn't it just buckets * bucket_size -
70 /* all fields are in units of 512 byte sectors: */
78 /* XXX: add stats for compression ratio */
86 u64 persistent_reserved[BCH_REPLICAS_MAX];
90 struct bch_fs_usage_online {
92 struct bch_fs_usage u;
95 struct bch_fs_usage_short {
103 * A reservation for space on disk:
105 struct disk_reservation {
108 unsigned nr_replicas;
111 struct copygc_heap_entry {
120 typedef HEAP(struct copygc_heap_entry) copygc_heap;
122 #endif /* _BUCKETS_TYPES_H */