Lines Matching refs:curstep
941 const struct crush_rule_step *curstep = &rule->steps[step];
943 switch (curstep->op) {
945 if ((curstep->arg1 >= 0 &&
946 curstep->arg1 < map->max_devices) ||
947 (-1-curstep->arg1 >= 0 &&
948 -1-curstep->arg1 < map->max_buckets &&
949 map->buckets[-1-curstep->arg1])) {
950 w[0] = curstep->arg1;
953 dprintk(" bad take value %d\n", curstep->arg1);
958 if (curstep->arg1 > 0)
959 choose_tries = curstep->arg1;
963 if (curstep->arg1 > 0)
964 choose_leaf_tries = curstep->arg1;
968 if (curstep->arg1 >= 0)
969 choose_local_retries = curstep->arg1;
973 if (curstep->arg1 >= 0)
974 choose_local_fallback_retries = curstep->arg1;
978 if (curstep->arg1 >= 0)
979 vary_r = curstep->arg1;
983 if (curstep->arg1 >= 0)
984 stable = curstep->arg1;
997 curstep->op ==
999 curstep->op ==
1007 numrep = curstep->arg1;
1036 curstep->arg2,
1058 curstep->arg2,
1093 curstep->op, step);