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 {
38 u64 sectors; /* _compressed_ sectors: */
41 * Why do we have this? Isn't it just buckets * bucket_size -
49 /* all fields are in units of 512 byte sectors: */
57 /* XXX: add stats for compression ratio */
65 u64 persistent_reserved[BCH_REPLICAS_MAX];
69 struct bch_fs_usage_online {
71 struct bch_fs_usage u;
74 struct bch_fs_usage_short {
82 * A reservation for space on disk:
84 struct disk_reservation {
90 #endif /* _BUCKETS_TYPES_H */