node2 76 include/pcmki/pcmki_sched_utils.h extern int compare_capacity(const pe_node_t * node1, const pe_node_t * node2); node2 82 lib/pacemaker/pcmk_sched_clone.c pe_node_t *node2 = NULL; node2 120 lib/pacemaker/pcmk_sched_clone.c node2 = current_node2; node2 131 lib/pacemaker/pcmk_sched_clone.c if (node2) { node2 132 lib/pacemaker/pcmk_sched_clone.c pe_node_t *match = pe_hash_table_lookup(resource2->allowed_nodes, node2->details->id); node2 136 lib/pacemaker/pcmk_sched_clone.c node2 = NULL; node2 159 lib/pacemaker/pcmk_sched_clone.c if (node1 == NULL && node2 == NULL) { node2 164 lib/pacemaker/pcmk_sched_clone.c if (node1 != node2) { node2 168 lib/pacemaker/pcmk_sched_clone.c } else if (node2 == NULL) { node2 175 lib/pacemaker/pcmk_sched_clone.c can2 = can_run_resources(node2); node2 186 lib/pacemaker/pcmk_sched_clone.c node2 = parent_node_instance(resource2, node2); node2 187 lib/pacemaker/pcmk_sched_clone.c if (node1 != NULL && node2 == NULL) { node2 190 lib/pacemaker/pcmk_sched_clone.c } else if (node1 == NULL && node2 != NULL) { node2 195 lib/pacemaker/pcmk_sched_clone.c if (node1 == NULL || node2 == NULL) { node2 200 lib/pacemaker/pcmk_sched_clone.c if (node1->count < node2->count) { node2 204 lib/pacemaker/pcmk_sched_clone.c } else if (node1->count > node2->count) { node2 220 lib/pacemaker/pcmk_sched_clone.c if (node1 && node2) { node2 298 lib/pacemaker/pcmk_sched_clone.c node2 = g_hash_table_lookup(hash2, current_node2->details->id); node2 300 lib/pacemaker/pcmk_sched_clone.c if (node1->weight < node2->weight) { node2 302 lib/pacemaker/pcmk_sched_clone.c crm_trace("%s > %s: current score: %d %d", resource1->id, resource2->id, node1->weight, node2->weight); node2 307 lib/pacemaker/pcmk_sched_clone.c crm_trace("%s < %s: current score: %d %d", resource1->id, resource2->id, node1->weight, node2->weight); node2 312 lib/pacemaker/pcmk_sched_clone.c } else if (node1->weight > node2->weight) { node2 313 lib/pacemaker/pcmk_sched_clone.c crm_trace("%s > %s: current score: %d %d", resource1->id, resource2->id, node1->weight, node2->weight); node2 331 lib/pacemaker/pcmk_sched_clone.c node2 = g_list_nth_data(list2, lpc); node2 337 lib/pacemaker/pcmk_sched_clone.c } else if (node2 == NULL) { node2 343 lib/pacemaker/pcmk_sched_clone.c if (node1->weight < node2->weight) { node2 348 lib/pacemaker/pcmk_sched_clone.c } else if (node1->weight > node2->weight) { node2 25 lib/pacemaker/pcmk_sched_utilization.c const pe_node_t *node2; node2 38 lib/pacemaker/pcmk_sched_utilization.c crm_parse_int(g_hash_table_lookup(data->node2->details->utilization, key), "0"); node2 72 lib/pacemaker/pcmk_sched_utilization.c compare_capacity(const pe_node_t * node1, const pe_node_t * node2) node2 77 lib/pacemaker/pcmk_sched_utilization.c data.node2 = node2; node2 81 lib/pacemaker/pcmk_sched_utilization.c g_hash_table_foreach(node2->details->utilization, do_compare_capacity2, &data); node2 156 lib/pacemaker/pcmk_sched_utils.c const pe_node_t *node2 = (const pe_node_t *)b; node2 172 lib/pacemaker/pcmk_sched_utils.c node2_weight = node2->weight; node2 177 lib/pacemaker/pcmk_sched_utils.c if (can_run_resources(node2) == FALSE) { node2 183 lib/pacemaker/pcmk_sched_utils.c node1->details->uname, node1_weight, node2->details->uname, node2_weight); node2 189 lib/pacemaker/pcmk_sched_utils.c node1->details->uname, node1_weight, node2->details->uname, node2_weight); node2 194 lib/pacemaker/pcmk_sched_utils.c node1->details->uname, node1_weight, node2->details->uname, node2_weight); node2 201 lib/pacemaker/pcmk_sched_utils.c result = compare_capacity(node1, node2); node2 204 lib/pacemaker/pcmk_sched_utils.c node1->details->uname, node2->details->uname, result); node2 208 lib/pacemaker/pcmk_sched_utils.c node1->details->uname, node2->details->uname, result); node2 214 lib/pacemaker/pcmk_sched_utils.c if (node1->details->num_resources < node2->details->num_resources) { node2 217 lib/pacemaker/pcmk_sched_utils.c node2->details->uname, node2->details->num_resources); node2 220 lib/pacemaker/pcmk_sched_utils.c } else if (node1->details->num_resources > node2->details->num_resources) { node2 223 lib/pacemaker/pcmk_sched_utils.c node2->details->uname, node2->details->num_resources); node2 230 lib/pacemaker/pcmk_sched_utils.c node2->details->uname, node2->details->num_resources); node2 232 lib/pacemaker/pcmk_sched_utils.c } else if (nw->active && nw->active->details == node2->details) { node2 235 lib/pacemaker/pcmk_sched_utils.c node2->details->uname, node2->details->num_resources); node2 239 lib/pacemaker/pcmk_sched_utils.c crm_trace("%s = %s", node1->details->uname, node2->details->uname); node2 240 lib/pacemaker/pcmk_sched_utils.c return strcmp(node1->details->uname, node2->details->uname);