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