Lines Matching refs:nodeid

52 		if (!slot->nodeid)  in dlm_slots_copy_out()
54 ro->ro_nodeid = cpu_to_le32(slot->nodeid); in dlm_slots_copy_out()
75 if (!array[i].nodeid) in log_slots()
79 array[i].slot, array[i].nodeid); in log_slots()
127 if (le32_to_cpu(ro->ro_nodeid) != memb->nodeid) in dlm_slots_copy_in()
134 if (memb->nodeid == our_nodeid) { in dlm_slots_copy_in()
148 memb->nodeid); in dlm_slots_copy_in()
175 if (memb->nodeid == our_nodeid) { in dlm_slots_assign()
207 memb->nodeid, memb->slot_prev, memb->slot); in dlm_slots_assign()
232 array[memb->slot - 1].nodeid = memb->nodeid; in dlm_slots_assign()
244 if (array[i].nodeid) in dlm_slots_assign()
249 array[i].nodeid = memb->nodeid; in dlm_slots_assign()
253 if (!ls->ls_slot && memb->nodeid == our_nodeid) in dlm_slots_assign()
295 if (new->nodeid < memb->nodeid) in add_ordered_member()
310 static int add_remote_member(int nodeid) in add_remote_member() argument
314 if (nodeid == dlm_our_nodeid()) in add_remote_member()
317 error = dlm_lowcomms_connect_node(nodeid); in add_remote_member()
321 dlm_midcomms_add_member(nodeid); in add_remote_member()
334 memb->nodeid = node->nodeid; in dlm_add_member()
338 error = add_remote_member(node->nodeid); in dlm_add_member()
349 static struct dlm_member *find_memb(struct list_head *head, int nodeid) in find_memb() argument
354 if (memb->nodeid == nodeid) in find_memb()
360 int dlm_is_member(struct dlm_ls *ls, int nodeid) in dlm_is_member() argument
362 if (find_memb(&ls->ls_nodes, nodeid)) in dlm_is_member()
367 int dlm_is_removed(struct dlm_ls *ls, int nodeid) in dlm_is_removed() argument
369 if (find_memb(&ls->ls_nodes_gone, nodeid)) in dlm_is_removed()
375 void (*after_del)(int nodeid)) in clear_memb_list() argument
383 after_del(memb->nodeid); in clear_memb_list()
388 static void remove_remote_member(int nodeid) in remove_remote_member() argument
390 if (nodeid == dlm_our_nodeid()) in remove_remote_member()
393 dlm_midcomms_remove_member(nodeid); in remove_remote_member()
444 array[x++] = memb->nodeid; in make_member_array()
462 error = dlm_rcom_status(ls, memb->nodeid, 0, seq); in ping_members()
494 error = dlm_comm_seq(memb->nodeid, &seq); in dlm_lsop_recover_slot()
499 slot.nodeid = memb->nodeid; in dlm_lsop_recover_slot()
525 slots[i].nodeid = memb->nodeid; in dlm_lsop_recover_done()
537 int nodeid) in find_config_node() argument
542 if (rv->nodes[i].nodeid == nodeid) in find_config_node()
562 log_rinfo(ls, "prev removed member %d", memb->nodeid); in dlm_recover_members()
569 node = find_config_node(rv, memb->nodeid); in dlm_recover_members()
574 log_rinfo(ls, "remove member %d", memb->nodeid); in dlm_recover_members()
578 memb->nodeid, memb->comm_seq, node->comm_seq); in dlm_recover_members()
583 remove_remote_member(memb->nodeid); in dlm_recover_members()
592 if (dlm_is_member(ls, node->nodeid)) in dlm_recover_members()
598 log_rinfo(ls, "add member %d", node->nodeid); in dlm_recover_members()
602 if (low == -1 || memb->nodeid < low) in dlm_recover_members()
603 low = memb->nodeid; in dlm_recover_members()