summaryrefslogtreecommitdiff
path: root/libbcache/buckets.h
diff options
context:
space:
mode:
Diffstat (limited to 'libbcache/buckets.h')
-rw-r--r--libbcache/buckets.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbcache/buckets.h b/libbcache/buckets.h
index 35100eb..8194dd9 100644
--- a/libbcache/buckets.h
+++ b/libbcache/buckets.h
@@ -42,7 +42,7 @@ static inline u8 bucket_gc_gen(struct cache *ca, struct bucket *g)
static inline struct cache *PTR_CACHE(const struct cache_set *c,
const struct bch_extent_ptr *ptr)
{
- EBUG_ON(ptr->dev > rcu_dereference(c->members)->nr_in_set);
+ EBUG_ON(ptr->dev > rcu_dereference(c->members)->nr_devices);
return rcu_dereference(c->cache[ptr->dev]);
}