diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2017-12-13 16:01:18 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2017-12-13 16:12:38 -0500 |
commit | ea83a3985d28372d56ec7cea6e73907551869f63 (patch) | |
tree | 42b8b0d3da3b1fa96eb4400455559e60a78c4294 /libbcachefs/buckets_types.h | |
parent | f2feceddae6f3bd3722247f3458860b955f539bc (diff) |
Update bcachefs sources to e57b5958cf bcachefs: fix for building in userspace
Diffstat (limited to 'libbcachefs/buckets_types.h')
-rw-r--r-- | libbcachefs/buckets_types.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/libbcachefs/buckets_types.h b/libbcachefs/buckets_types.h index 63f1b27f..0bd8d2d8 100644 --- a/libbcachefs/buckets_types.h +++ b/libbcachefs/buckets_types.h @@ -59,6 +59,7 @@ struct bch_dev_usage { u64 buckets[S_ALLOC_NR]; u64 buckets_cached; u64 buckets_alloc; + u64 buckets_unavailable; /* _compressed_ sectors: */ u64 sectors[S_ALLOC_NR]; @@ -79,13 +80,6 @@ struct bch_fs_usage { u64 available_cache; }; -struct bucket_heap_entry { - size_t bucket; - struct bucket_mark mark; -}; - -typedef HEAP(struct bucket_heap_entry) bucket_heap; - /* * A reservation for space on disk: */ @@ -95,4 +89,11 @@ struct disk_reservation { unsigned nr_replicas; }; +struct copygc_heap_entry { + u64 offset; + struct bucket_mark mark; +}; + +typedef HEAP(struct copygc_heap_entry) copygc_heap; + #endif /* _BUCKETS_TYPES_H */ |