• Home
  • Raw
  • Download

Lines Matching refs:in

376 static int crush_bucket_choose(const struct crush_bucket *in,  in crush_bucket_choose()  argument
382 dprintk(" crush_bucket_choose %d x=%d r=%d\n", in->id, x, r); in crush_bucket_choose()
383 BUG_ON(in->size == 0); in crush_bucket_choose()
384 switch (in->alg) { in crush_bucket_choose()
387 (const struct crush_bucket_uniform *)in, in crush_bucket_choose()
390 return bucket_list_choose((const struct crush_bucket_list *)in, in crush_bucket_choose()
393 return bucket_tree_choose((const struct crush_bucket_tree *)in, in crush_bucket_choose()
397 (const struct crush_bucket_straw *)in, in crush_bucket_choose()
401 (const struct crush_bucket_straw2 *)in, in crush_bucket_choose()
404 dprintk("unknown bucket %d alg %d\n", in->id, in->alg); in crush_bucket_choose()
405 return in->items[0]; in crush_bucket_choose()
470 const struct crush_bucket *in = bucket; in crush_choose_firstn() local
490 in = bucket; /* initial bucket */ in crush_choose_firstn()
502 if (in->size == 0) { in crush_choose_firstn()
507 flocal >= (in->size>>1) && in crush_choose_firstn()
510 in, work->work[-1-in->id], in crush_choose_firstn()
514 in, work->work[-1-in->id], in crush_choose_firstn()
517 &choose_args[-1-in->id] : NULL), in crush_choose_firstn()
540 in = map->buckets[-1-item]; in crush_choose_firstn()
602 flocal <= in->size + local_fallback_retries) in crush_choose_firstn()
656 const struct crush_bucket *in = bucket; in crush_choose_indep() local
695 in = bucket; /* initial bucket */ in crush_choose_indep()
710 if (in->alg == CRUSH_BUCKET_UNIFORM && in crush_choose_indep()
711 in->size % numrep == 0) in crush_choose_indep()
719 if (in->size == 0) { in crush_choose_indep()
725 in, work->work[-1-in->id], in crush_choose_indep()
728 &choose_args[-1-in->id] : NULL), in crush_choose_indep()
758 in = map->buckets[-1-item]; in crush_choose_indep()