Lines Matching refs:rep

425 	int rep;  in crush_choose_firstn()  local
442 for (rep = outpos; rep < numrep && count > 0 ; rep++) { in crush_choose_firstn()
455 r = rep + parent_r; in crush_choose_firstn()
605 int rep; in crush_choose_indep() local
617 for (rep = outpos; rep < endpos; rep++) { in crush_choose_indep()
618 out[rep] = CRUSH_ITEM_UNDEF; in crush_choose_indep()
620 out2[rep] = CRUSH_ITEM_UNDEF; in crush_choose_indep()
627 for (rep = outpos; rep < endpos; rep++) { in crush_choose_indep()
628 dprintk(" %d", out[rep]); in crush_choose_indep()
632 for (rep = outpos; rep < endpos; rep++) { in crush_choose_indep()
633 dprintk(" %d", out2[rep]); in crush_choose_indep()
638 for (rep = outpos; rep < endpos; rep++) { in crush_choose_indep()
639 if (out[rep] != CRUSH_ITEM_UNDEF) in crush_choose_indep()
654 r = rep + parent_r; in crush_choose_indep()
674 out[rep] = CRUSH_ITEM_NONE; in crush_choose_indep()
676 out2[rep] = CRUSH_ITEM_NONE; in crush_choose_indep()
693 out[rep] = CRUSH_ITEM_NONE; in crush_choose_indep()
695 out2[rep] = in crush_choose_indep()
721 out2, rep, in crush_choose_indep()
724 if (out2[rep] == CRUSH_ITEM_NONE) { in crush_choose_indep()
730 out2[rep] = item; in crush_choose_indep()
740 out[rep] = item; in crush_choose_indep()
746 for (rep = outpos; rep < endpos; rep++) { in crush_choose_indep()
747 if (out[rep] == CRUSH_ITEM_UNDEF) { in crush_choose_indep()
748 out[rep] = CRUSH_ITEM_NONE; in crush_choose_indep()
750 if (out2 && out2[rep] == CRUSH_ITEM_UNDEF) { in crush_choose_indep()
751 out2[rep] = CRUSH_ITEM_NONE; in crush_choose_indep()
761 for (rep = outpos; rep < endpos; rep++) { in crush_choose_indep()
762 dprintk(" %d", out[rep]); in crush_choose_indep()
766 for (rep = outpos; rep < endpos; rep++) { in crush_choose_indep()
767 dprintk(" %d", out2[rep]); in crush_choose_indep()