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
35 struct bch_dev_usage {
40 u64 sectors; /* _compressed_ sectors: */
43 * Why do we have this? Isn't it just buckets * bucket_size -
51 /* all fields are in units of 512 byte sectors: */
59 /* XXX: add stats for compression ratio */
67 u64 persistent_reserved[BCH_REPLICAS_MAX];
71 struct bch_fs_usage_online {
73 struct bch_fs_usage u;
76 struct bch_fs_usage_short {
84 * A reservation for space on disk:
86 struct disk_reservation {
92 #endif /* _BUCKETS_TYPES_H */