Lines Matching defs:ndata
257 struct dlm_reco_node_data *ndata;
265 list_for_each_entry(ndata, &dlm->reco.node_data, list) {
267 switch (ndata->state) {
294 dlm->name, ndata->node_num, st);
548 struct dlm_reco_node_data *ndata;
566 list_for_each_entry(ndata, &dlm->reco.node_data, list) {
567 BUG_ON(ndata->state != DLM_RECO_NODE_DATA_INIT);
568 ndata->state = DLM_RECO_NODE_DATA_REQUESTING;
571 ndata->node_num);
573 if (ndata->node_num == dlm->node_num) {
574 ndata->state = DLM_RECO_NODE_DATA_DONE;
579 status = dlm_request_all_locks(dlm, ndata->node_num,
586 ndata->state = DLM_RECO_NODE_DATA_DEAD;
591 ndata->node_num),
594 "dead? %s\n", ndata->node_num,
595 dlm_is_node_dead(dlm, ndata->node_num) ?
602 dlm->name, ndata->node_num,
610 switch (ndata->state) {
619 ndata->node_num, dead_node);
624 ndata->state = DLM_RECO_NODE_DATA_REQUESTED;
627 ndata->node_num, dead_node);
632 ndata->node_num, dead_node);
637 ndata->node_num, dead_node);
653 list_for_each_entry(ndata, &dlm->reco.node_data, list) {
655 ndata->node_num);
656 switch (ndata->state) {
659 mlog(ML_ERROR, "bad ndata state for "
661 ndata->node_num, ndata->state);
667 "node %u\n", ndata->node_num,
673 dlm->name, ndata->node_num,
674 ndata->state==DLM_RECO_NODE_DATA_RECEIVING ?
680 dlm->name, ndata->node_num);
684 dlm->name, ndata->node_num);
737 struct dlm_reco_node_data *ndata;
752 ndata = kzalloc(sizeof(*ndata), GFP_NOFS);
753 if (!ndata) {
757 ndata->node_num = num;
758 ndata->state = DLM_RECO_NODE_DATA_INIT;
760 list_add_tail(&ndata->list, &dlm->reco.node_data);
770 struct dlm_reco_node_data *ndata, *next;
777 list_for_each_entry_safe(ndata, next, &tmplist, list) {
778 list_del_init(&ndata->list);
779 kfree(ndata);
977 struct dlm_reco_node_data *ndata = NULL;
993 list_for_each_entry(ndata, &dlm->reco.node_data, list) {
994 if (ndata->node_num != done->node_idx)
997 switch (ndata->state) {
1002 mlog(ML_ERROR, "bad ndata state for node %u:"
1003 " state=%d\n", ndata->node_num,
1004 ndata->state);
1015 ndata->node_num);
1017 ndata->state = DLM_RECO_NODE_DATA_DONE;