1 #ifndef _BUCKETS_TYPES_H
2 #define _BUCKETS_TYPES_H
23 * low bits of journal sequence number when this bucket was most
24 * recently modified: if journal_seq_valid is set, this bucket
25 * can't be reused until the journal sequence number written to
26 * disk is >= the bucket's journal sequence number:
37 struct bucket_mark _mark;
38 const struct bucket_mark mark;
49 struct bch_dev_usage {
50 u64 buckets[BCH_DATA_NR];
52 u64 buckets_unavailable;
54 /* _compressed_ sectors: */
55 u64 sectors[BCH_DATA_NR];
56 u64 sectors_fragmented;
59 /* kill, switch to bch_data_type? */
67 /* all fields are in units of 512 byte sectors: */
68 /* _uncompressed_ sectors: */
74 u64 persistent_reserved;
75 } s[BCH_REPLICAS_MAX];
79 * A reservation for space on disk:
81 struct disk_reservation {
87 struct copygc_heap_entry {
89 struct bucket_mark mark;
92 typedef HEAP(struct copygc_heap_entry) copygc_heap;
94 #endif /* _BUCKETS_TYPES_H */