Lines Matching refs:curstep
940 const struct crush_rule_step *curstep = &rule->steps[step]; in crush_do_rule() local
942 switch (curstep->op) { in crush_do_rule()
944 if ((curstep->arg1 >= 0 && in crush_do_rule()
945 curstep->arg1 < map->max_devices) || in crush_do_rule()
946 (-1-curstep->arg1 >= 0 && in crush_do_rule()
947 -1-curstep->arg1 < map->max_buckets && in crush_do_rule()
948 map->buckets[-1-curstep->arg1])) { in crush_do_rule()
949 w[0] = curstep->arg1; in crush_do_rule()
952 dprintk(" bad take value %d\n", curstep->arg1); in crush_do_rule()
957 if (curstep->arg1 > 0) in crush_do_rule()
958 choose_tries = curstep->arg1; in crush_do_rule()
962 if (curstep->arg1 > 0) in crush_do_rule()
963 choose_leaf_tries = curstep->arg1; in crush_do_rule()
967 if (curstep->arg1 >= 0) in crush_do_rule()
968 choose_local_retries = curstep->arg1; in crush_do_rule()
972 if (curstep->arg1 >= 0) in crush_do_rule()
973 choose_local_fallback_retries = curstep->arg1; in crush_do_rule()
977 if (curstep->arg1 >= 0) in crush_do_rule()
978 vary_r = curstep->arg1; in crush_do_rule()
982 if (curstep->arg1 >= 0) in crush_do_rule()
983 stable = curstep->arg1; in crush_do_rule()
996 curstep->op == in crush_do_rule()
998 curstep->op == in crush_do_rule()
1006 numrep = curstep->arg1; in crush_do_rule()
1035 curstep->arg2, in crush_do_rule()
1057 curstep->arg2, in crush_do_rule()
1090 curstep->op, step); in crush_do_rule()