crm_info("Processing stage 1");
stage1(GListPtr node_constraints, GListPtr nodes, GListPtr resources){	int lpc = 0;		slist_iter(		node, node_t, nodes, lpc,		if(node == NULL) {			/* error */		} else if(node->weight >= 0.0 /* global weight */			  && node->details->online			  && node->details->type == node_member) {			max_valid_nodes++;		}			);	apply_node_constraints(node_constraints, nodes);	/* will also filter -ve "final" weighted nodes from resources'	 *   allowed lists while we are there	 */	apply_agent_constraints(resources);	return TRUE;} 