| 101 | } |
| 102 | |
| 103 | static gboolean |
| 104 | have_enough_capacity(node_t * node, resource_t * rsc) |
| 105 | { |
| 106 | struct capacity_data data; |
| 107 | |
| 108 | data.node = node; |
| 109 | data.rsc = rsc; |
| 110 | data.is_enough = TRUE; |
| 111 | |
| 112 | g_hash_table_foreach(rsc->utilization, check_capacity, &data); |
| 113 | |
| 114 | return data.is_enough; |
| 115 | } |
| 116 | |
| 117 | static gboolean |
| 118 | native_choose_node(resource_t * rsc, node_t * prefer, pe_working_set_t * data_set) |
no outgoing calls
no test coverage detected