Lines Matching defs:nd
304 int comm_seq; /* copy of cm->seq when nd->nodeid is set */
558 struct dlm_node *nd;
560 nd = kzalloc(sizeof(struct dlm_node), GFP_NOFS);
561 if (!nd)
564 config_item_init_type_name(&nd->item, name, &node_type);
565 nd->nodeid = -1;
566 nd->weight = 1; /* default weight of 1 if none is set */
567 nd->new = 1; /* set to 0 once it's been read by dlm_nodeid_list() */
570 list_add(&nd->list, &sp->members);
574 return &nd->item;
580 struct dlm_node *nd = config_item_to_node(i);
583 list_del(&nd->list);
592 struct dlm_node *nd = config_item_to_node(i);
593 kfree(nd);
781 struct dlm_node *nd = config_item_to_node(item);
783 int rc = kstrtoint(buf, 0, &nd->nodeid);
787 dlm_comm_seq(nd->nodeid, &seq);
788 nd->comm_seq = seq;
876 struct dlm_node *nd;
900 list_for_each_entry(nd, &sp->members, list) {
901 node->nodeid = nd->nodeid;
902 node->weight = nd->weight;
903 node->new = nd->new;
904 node->comm_seq = nd->comm_seq;
907 nd->new = 0;