Home
last modified time | relevance | path

Searched refs:curstep (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/ceph/crush/
H A Dmapper.c940 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()
[all …]