Lines Matching refs:rep
471 int rep; in crush_choose_firstn() local
488 for (rep = stable ? 0 : outpos; rep < numrep && count > 0 ; rep++) { in crush_choose_firstn()
501 r = rep + parent_r; in crush_choose_firstn()
661 int rep; in crush_choose_indep() local
673 for (rep = outpos; rep < endpos; rep++) { in crush_choose_indep()
674 out[rep] = CRUSH_ITEM_UNDEF; in crush_choose_indep()
676 out2[rep] = CRUSH_ITEM_UNDEF; in crush_choose_indep()
683 for (rep = outpos; rep < endpos; rep++) { in crush_choose_indep()
684 dprintk(" %d", out[rep]); in crush_choose_indep()
688 for (rep = outpos; rep < endpos; rep++) { in crush_choose_indep()
689 dprintk(" %d", out2[rep]); in crush_choose_indep()
694 for (rep = outpos; rep < endpos; rep++) { in crush_choose_indep()
695 if (out[rep] != CRUSH_ITEM_UNDEF) in crush_choose_indep()
710 r = rep + parent_r; in crush_choose_indep()
735 out[rep] = CRUSH_ITEM_NONE; in crush_choose_indep()
737 out2[rep] = CRUSH_ITEM_NONE; in crush_choose_indep()
754 out[rep] = CRUSH_ITEM_NONE; in crush_choose_indep()
756 out2[rep] = in crush_choose_indep()
784 out2, rep, in crush_choose_indep()
788 if (out2[rep] == CRUSH_ITEM_NONE) { in crush_choose_indep()
794 out2[rep] = item; in crush_choose_indep()
804 out[rep] = item; in crush_choose_indep()
810 for (rep = outpos; rep < endpos; rep++) { in crush_choose_indep()
811 if (out[rep] == CRUSH_ITEM_UNDEF) { in crush_choose_indep()
812 out[rep] = CRUSH_ITEM_NONE; in crush_choose_indep()
814 if (out2 && out2[rep] == CRUSH_ITEM_UNDEF) { in crush_choose_indep()
815 out2[rep] = CRUSH_ITEM_NONE; in crush_choose_indep()
825 for (rep = outpos; rep < endpos; rep++) { in crush_choose_indep()
826 dprintk(" %d", out[rep]); in crush_choose_indep()
830 for (rep = outpos; rep < endpos; rep++) { in crush_choose_indep()
831 dprintk(" %d", out2[rep]); in crush_choose_indep()