Lines Matching refs:dev_idx
234 if (bch2_bucket_is_open(c, ca->dev_idx, bucket)) { in __try_alloc_bucket()
245 ob->dev = ca->dev_idx; in __try_alloc_bucket()
268 if (!may_alloc_bucket(c, req, POS(req->ca->dev_idx, b))) in try_alloc_bucket()
310 for_each_btree_key_norestart(trans, iter, BTREE_ID_alloc, POS(ca->dev_idx, alloc_cursor), in bch2_bucket_alloc_early()
314 if (bkey_ge(k.k->p, POS(ca->dev_idx, ca->mi.nbuckets))) in bch2_bucket_alloc_early()
327 bch2_btree_iter_set_pos(trans, &iter, POS(ca->dev_idx, bucket)); in bch2_bucket_alloc_early()
390 POS(ca->dev_idx, alloc_cursor), in bch2_bucket_alloc_freelist()
391 POS(ca->dev_idx, U64_MAX), in bch2_bucket_alloc_freelist()
415 bch2_btree_iter_set_pos(trans, &iter, POS(ca->dev_idx, alloc_cursor)); in bch2_bucket_alloc_freelist()
460 prt_printf(&buf, "dev\t%s (%u)\n", req->ca->name, req->ca->dev_idx); in trace_bucket_alloc2()
663 u64 *v = stripe->next_alloc + ca->dev_idx; in bch2_dev_stripe_increment_inlined()
983 bool drop = ob->dev == ca->dev_idx; in should_drop_bucket()
998 drop |= ob2->dev == ca->dev_idx; in should_drop_bucket()
1482 if (ob->valid && (!ca || ob->dev == ca->dev_idx)) in bch2_open_buckets_to_text()
1641 prt_printf(&buf, "Dev %u:\n", ca->dev_idx); in bch2_print_allocator_stuck()