diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-10-12 14:55:27 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2018-10-12 15:10:26 -0400 |
commit | 55fbb25501330038e1714905b9ddeb25d875c11c (patch) | |
tree | cecfd15e26bfd60d95eea8a373e42337239e7c8c /libbcachefs/alloc_types.h | |
parent | 0268bec14bcf64b25b5dd75a470be8e85cbe676d (diff) |
Update bcachefs sources to d7f6da1d60 bcachefs: fix missing include
Diffstat (limited to 'libbcachefs/alloc_types.h')
-rw-r--r-- | libbcachefs/alloc_types.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/libbcachefs/alloc_types.h b/libbcachefs/alloc_types.h index 8a71a376..94c041d2 100644 --- a/libbcachefs/alloc_types.h +++ b/libbcachefs/alloc_types.h @@ -57,6 +57,13 @@ struct open_bucket { struct bch_extent_ptr ptr; }; +#define OPEN_BUCKET_LIST_MAX 15 + +struct open_buckets { + u8 nr; + u8 v[OPEN_BUCKET_LIST_MAX]; +}; + struct write_point { struct hlist_node node; struct mutex lock; @@ -64,13 +71,10 @@ struct write_point { unsigned long write_point; enum bch_data_type type; - u8 nr_ptrs; - u8 first_ptr; - /* calculated based on how many pointers we're actually going to use: */ unsigned sectors_free; - struct open_bucket *ptrs[BCH_REPLICAS_MAX * 2]; + struct open_buckets ptrs; u64 next_alloc[BCH_SB_MEMBERS_MAX]; }; |