Lines Matching refs:buckets_in_flight
29 struct buckets_in_flight { struct
45 move_bucket_in_flight_add(struct buckets_in_flight *list, struct move_bucket b) in move_bucket_in_flight_add() argument
112 struct buckets_in_flight *list, in move_buckets_wait()
141 static bool bucket_in_flight(struct buckets_in_flight *list, in bucket_in_flight()
150 struct buckets_in_flight *buckets_in_flight, in bch2_copygc_get_buckets() argument
155 size_t nr_to_get = max_t(size_t, 16U, buckets_in_flight->nr / 4); in bch2_copygc_get_buckets()
159 move_buckets_wait(ctxt, buckets_in_flight, false); in bch2_copygc_get_buckets()
185 else if (bucket_in_flight(buckets_in_flight, b.k)) in bch2_copygc_get_buckets()
200 buckets_in_flight->nr, buckets_in_flight->sectors, in bch2_copygc_get_buckets()
208 struct buckets_in_flight *buckets_in_flight, in bch2_copygc() argument
221 ret = bch2_copygc_get_buckets(ctxt, buckets_in_flight, &buckets); in bch2_copygc()
229 f = move_bucket_in_flight_add(buckets_in_flight, *i); in bch2_copygc()
326 struct buckets_in_flight *buckets; in bch2_copygc_thread()
330 buckets = kzalloc(sizeof(struct buckets_in_flight), GFP_KERNEL); in bch2_copygc_thread()