diff options
Diffstat (limited to 'fs/bcachefs/bcache.h')
-rw-r--r-- | fs/bcachefs/bcache.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/fs/bcachefs/bcache.h b/fs/bcachefs/bcache.h index a6bbd38f4316..37237109299a 100644 --- a/fs/bcachefs/bcache.h +++ b/fs/bcachefs/bcache.h @@ -314,10 +314,17 @@ struct gc_pos { unsigned level; }; +struct cache_group_entry { + struct cache *dev; + u64 buckets_free; +}; + struct cache_group { - seqcount_t lock; + struct mutex lock; unsigned nr_devices; - struct cache __rcu *devices[MAX_CACHES_PER_SET]; + unsigned nr_devices_max; + unsigned next_alloc; + struct cache_group_entry *devices; }; struct cache_member_cpu { |