Lines Matching refs:buckets
150 move_buckets *buckets) in bch2_copygc_get_buckets() argument
187 ret2 = darray_push(buckets, b); in bch2_copygc_get_buckets()
193 ret2 = buckets->nr >= nr_to_get; in bch2_copygc_get_buckets()
200 saw, in_flight, not_movable, buckets->nr, sectors, nr_to_get, ret); in bch2_copygc_get_buckets()
215 move_buckets buckets = { 0 }; in bch2_copygc() local
221 ret = bch2_copygc_get_buckets(ctxt, buckets_in_flight, &buckets); in bch2_copygc()
225 darray_for_each(buckets, i) { in bch2_copygc()
258 trace_and_count(c, copygc, c, buckets.nr, sectors_seen, sectors_moved); in bch2_copygc()
260 darray_exit(&buckets); in bch2_copygc()
328 struct buckets_in_flight *buckets; in bch2_copygc_thread() local
332 buckets = kzalloc(sizeof(struct buckets_in_flight), GFP_KERNEL); in bch2_copygc_thread()
333 if (!buckets) in bch2_copygc_thread()
335 ret = rhashtable_init(&buckets->table, &bch_move_bucket_params); in bch2_copygc_thread()
338 kfree(buckets); in bch2_copygc_thread()
356 move_buckets_wait(&ctxt, buckets, true); in bch2_copygc_thread()
362 move_buckets_wait(&ctxt, buckets, true); in bch2_copygc_thread()
373 move_buckets_wait(&ctxt, buckets, true); in bch2_copygc_thread()
383 ret = bch2_copygc(&ctxt, buckets, &did_work); in bch2_copygc_thread()
394 move_buckets_wait(&ctxt, buckets, true); in bch2_copygc_thread()
400 move_buckets_wait(&ctxt, buckets, true); in bch2_copygc_thread()
402 rhashtable_destroy(&buckets->table); in bch2_copygc_thread()
403 kfree(buckets); in bch2_copygc_thread()