summaryrefslogtreecommitdiff
path: root/libbcache/alloc_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'libbcache/alloc_types.h')
-rw-r--r--libbcache/alloc_types.h6
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