diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2017-03-10 12:40:01 -0900 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2017-03-10 12:40:01 -0900 |
commit | 3bf874183a518cc1bf785d9944de05cf51a177d3 (patch) | |
tree | 65fb33f65a65996669fb96e5c746f6dd4d22d31c /libbcache/alloc_types.h | |
parent | c3844b0b7ff75527a87f52229f15341c24c0d356 (diff) |
update bcache sources
Diffstat (limited to 'libbcache/alloc_types.h')
-rw-r--r-- | libbcache/alloc_types.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbcache/alloc_types.h b/libbcache/alloc_types.h index f408bd97..1bf48ef9 100644 --- a/libbcache/alloc_types.h +++ b/libbcache/alloc_types.h @@ -49,13 +49,13 @@ static inline bool allocation_is_metadata(enum alloc_reserve id) return id <= RESERVE_METADATA_LAST; } -struct cache_group { +struct dev_group { spinlock_t lock; unsigned nr; unsigned cur_device; struct { u64 weight; - struct cache *dev; + struct bch_dev *dev; } d[BCH_SB_MEMBERS_MAX]; }; @@ -91,7 +91,7 @@ struct write_point { * If not NULL, cache group for tiering, promotion and moving GC - * always allocates a single replica */ - struct cache_group *group; + struct dev_group *group; /* * Otherwise do a normal replicated bucket allocation that could come |