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