Lines Matching refs:rep

467 	int rep;  in crush_choose_firstn()  local
484 for (rep = stable ? 0 : outpos; rep < numrep && count > 0 ; rep++) { in crush_choose_firstn()
497 r = rep + parent_r; in crush_choose_firstn()
658 int rep; in crush_choose_indep() local
670 for (rep = outpos; rep < endpos; rep++) { in crush_choose_indep()
671 out[rep] = CRUSH_ITEM_UNDEF; in crush_choose_indep()
673 out2[rep] = CRUSH_ITEM_UNDEF; in crush_choose_indep()
680 for (rep = outpos; rep < endpos; rep++) { in crush_choose_indep()
681 dprintk(" %d", out[rep]); in crush_choose_indep()
685 for (rep = outpos; rep < endpos; rep++) { in crush_choose_indep()
686 dprintk(" %d", out2[rep]); in crush_choose_indep()
691 for (rep = outpos; rep < endpos; rep++) { in crush_choose_indep()
692 if (out[rep] != CRUSH_ITEM_UNDEF) in crush_choose_indep()
707 r = rep + parent_r; in crush_choose_indep()
732 out[rep] = CRUSH_ITEM_NONE; in crush_choose_indep()
734 out2[rep] = CRUSH_ITEM_NONE; in crush_choose_indep()
751 out[rep] = CRUSH_ITEM_NONE; in crush_choose_indep()
753 out2[rep] = in crush_choose_indep()
781 out2, rep, in crush_choose_indep()
785 if (out2[rep] == CRUSH_ITEM_NONE) { in crush_choose_indep()
791 out2[rep] = item; in crush_choose_indep()
801 out[rep] = item; in crush_choose_indep()
807 for (rep = outpos; rep < endpos; rep++) { in crush_choose_indep()
808 if (out[rep] == CRUSH_ITEM_UNDEF) { in crush_choose_indep()
809 out[rep] = CRUSH_ITEM_NONE; in crush_choose_indep()
811 if (out2 && out2[rep] == CRUSH_ITEM_UNDEF) { in crush_choose_indep()
812 out2[rep] = CRUSH_ITEM_NONE; in crush_choose_indep()
822 for (rep = outpos; rep < endpos; rep++) { in crush_choose_indep()
823 dprintk(" %d", out[rep]); in crush_choose_indep()
827 for (rep = outpos; rep < endpos; rep++) { in crush_choose_indep()
828 dprintk(" %d", out2[rep]); in crush_choose_indep()