1 #ifndef _BUCKETS_TYPES_H
2 #define _BUCKETS_TYPES_H
6 /* kill, switch to bch_data_types */
7 enum bucket_data_type {
32 * low bits of journal sequence number when this bucket was most
33 * recently modified: if journal_seq_valid is set, this bucket
34 * can't be reused until the journal sequence number written to
35 * disk is >= the bucket's journal sequence number:
46 struct bucket_mark _mark;
47 const struct bucket_mark mark;
51 /* kill, switch to bucket_data_type */
58 struct bch_dev_usage {
59 u64 buckets[S_ALLOC_NR];
63 /* _compressed_ sectors: */
64 u64 sectors[S_ALLOC_NR];
69 /* all fields are in units of 512 byte sectors: */
71 /* _uncompressed_ sectors: */
75 u64 persistent_reserved;
76 } s[BCH_REPLICAS_MAX];
82 struct bucket_heap_entry {
84 struct bucket_mark mark;
87 typedef HEAP(struct bucket_heap_entry) bucket_heap;
90 * A reservation for space on disk:
92 struct disk_reservation {
98 #endif /* _BUCKETS_TYPES_H */