Lines Matching defs:buckets
14 #include "buckets.h"
144 move_buckets *buckets)
179 ret2 = darray_push(buckets, b);
185 ret2 = buckets->nr >= nr_to_get;
190 pr_debug("have: %zu (%zu) saw %zu in flight %zu not movable %zu got %zu (%zu)/%zu buckets ret %i",
192 saw, in_flight, not_movable, buckets->nr, sectors, nr_to_get, ret);
207 move_buckets buckets = { 0 };
212 ret = bch2_copygc_get_buckets(ctxt, buckets_in_flight, &buckets);
216 darray_for_each(buckets, i) {
239 darray_exit(&buckets);
312 struct buckets_in_flight *buckets;
316 buckets = kzalloc(sizeof(struct buckets_in_flight), GFP_KERNEL);
317 if (!buckets)
319 ret = rhashtable_init(&buckets->table, &bch_move_bucket_params);
320 bch_err_msg(c, ret, "allocating copygc buckets in flight");
322 kfree(buckets);
340 move_buckets_wait(&ctxt, buckets, true);
346 move_buckets_wait(&ctxt, buckets, true);
357 move_buckets_wait(&ctxt, buckets, true);
367 ret = bch2_copygc(&ctxt, buckets, &did_work);
384 move_buckets_wait(&ctxt, buckets, true);
386 rhashtable_destroy(&buckets->table);
387 kfree(buckets);