Lines Matching refs:nd
296 int comm_seq; /* copy of cm->seq when nd->nodeid is set */
550 struct dlm_node *nd;
552 nd = kzalloc(sizeof(struct dlm_node), GFP_NOFS);
553 if (!nd)
556 config_item_init_type_name(&nd->item, name, &node_type);
557 nd->nodeid = -1;
558 nd->weight = 1; /* default weight of 1 if none is set */
559 nd->new = 1; /* set to 0 once it's been read by dlm_nodeid_list() */
562 list_add(&nd->list, &sp->members);
566 return &nd->item;
572 struct dlm_node *nd = config_item_to_node(i);
575 list_del(&nd->list);
584 struct dlm_node *nd = config_item_to_node(i);
585 kfree(nd);
773 struct dlm_node *nd = config_item_to_node(item);
775 int rc = kstrtoint(buf, 0, &nd->nodeid);
779 dlm_comm_seq(nd->nodeid, &seq);
780 nd->comm_seq = seq;
868 struct dlm_node *nd;
892 list_for_each_entry(nd, &sp->members, list) {
893 node->nodeid = nd->nodeid;
894 node->weight = nd->weight;
895 node->new = nd->new;
896 node->comm_seq = nd->comm_seq;
899 nd->new = 0;