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
20 } __aligned(sizeof(long));
26 size_t nbuckets_minus_first
;
30 struct bch_dev_usage
{
31 struct bch_dev_usage_type
{
33 u64 sectors
; /* _compressed_ sectors: */
36 * Why do we have this? Isn't it just buckets * bucket_size -
43 struct bch_fs_usage_base
{
52 struct bch_fs_usage_short
{
60 * A reservation for space on disk:
62 struct disk_reservation
{
68 #endif /* _BUCKETS_TYPES_H */