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;
52 struct bch_dev_usage {
54 u64 buckets_unavailable;
58 u64 sectors; /* _compressed_ sectors: */
61 * Why do we have this? Isn't it just buckets * bucket_size -
69 /* all fields are in units of 512 byte sectors: */
77 /* XXX: add stats for compression ratio */
85 u64 persistent_reserved[BCH_REPLICAS_MAX];
89 struct bch_fs_usage_online {
91 struct bch_fs_usage u;
94 struct bch_fs_usage_short {
102 * A reservation for space on disk:
104 struct disk_reservation {
107 unsigned nr_replicas;
110 struct copygc_heap_entry {
119 typedef HEAP(struct copygc_heap_entry) copygc_heap;
121 #endif /* _BUCKETS_TYPES_H */