Lines Matching defs:nd
312 int comm_seq; /* copy of cm->seq when nd->nodeid is set */
559 struct dlm_node *nd;
567 nd = kzalloc(sizeof(struct dlm_node), GFP_NOFS);
568 if (!nd)
571 config_item_init_type_name(&nd->item, name, &node_type);
572 nd->nodeid = nodeid;
573 nd->weight = 1; /* default weight of 1 if none is set */
574 nd->new = 1; /* set to 0 once it's been read by dlm_nodeid_list() */
576 nd->comm_seq = seq;
579 list_add(&nd->list, &sp->members);
583 return &nd->item;
589 struct dlm_node *nd = config_item_to_node(i);
592 list_del(&nd->list);
601 struct dlm_node *nd = config_item_to_node(i);
602 kfree(nd);
886 struct dlm_node *nd;
910 list_for_each_entry(nd, &sp->members, list) {
911 node->nodeid = nd->nodeid;
912 node->weight = nd->weight;
913 node->new = nd->new;
914 node->comm_seq = nd->comm_seq;
917 nd->new = 0;