diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2017-03-01 01:45:15 -0900 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2017-03-09 09:14:11 -0900 |
commit | a17f7bcec7ed810a247c24e56229af8f43a9a6ae (patch) | |
tree | 1b2d60b21661bd2991324e3efaa83b3cdd87a783 /libbcache/alloc.h | |
parent | 171ee48e57be78f4e95954c99851553fa523bf91 (diff) |
cmd_migrate
Diffstat (limited to 'libbcache/alloc.h')
-rw-r--r-- | libbcache/alloc.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libbcache/alloc.h b/libbcache/alloc.h index 09139a59..9573dd2c 100644 --- a/libbcache/alloc.h +++ b/libbcache/alloc.h @@ -27,6 +27,8 @@ int bch_prio_read(struct cache *); void bch_recalc_min_prio(struct cache *, int); +size_t bch_bucket_alloc(struct cache *, enum alloc_reserve); + void bch_open_bucket_put(struct cache_set *, struct open_bucket *); struct open_bucket *bch_alloc_sectors_start(struct cache_set *, @@ -58,7 +60,7 @@ static inline struct cache *cache_group_next_rcu(struct cache_group *devs, { struct cache *ret = NULL; - while (*iter < devs->nr_devices && + while (*iter < devs->nr && !(ret = rcu_dereference(devs->d[*iter].dev))) (*iter)++; @@ -103,8 +105,9 @@ static inline struct cache *cache_group_next(struct cache_group *devs, ((_ca) = __open_bucket_next_online_device(_c, _ob, _ptr, _ca));\ (_ptr)++) +void bch_recalc_capacity(struct cache_set *); void bch_dev_allocator_stop(struct cache *); int bch_dev_allocator_start(struct cache *); -void bch_open_buckets_init(struct cache_set *); +void bch_fs_allocator_init(struct cache_set *); #endif /* _BCACHE_ALLOC_H */ |