Lines Matching defs:qr

957 			     struct dlm_query_region *qr,
960 char *remote = qr->qr_regions;
966 if (qr->qr_numregions) {
969 qr->qr_domain, qr->qr_node, dlm->node_num);
975 if (o2hb_global_heartbeat_active() && !qr->qr_numregions) {
978 qr->qr_domain, dlm->node_num, qr->qr_node);
984 for (i = 0; i < qr->qr_numregions; ++i) {
997 for (j = 0; j <= qr->qr_numregions; ++j) {
1008 qr->qr_domain, O2HB_MAX_REGION_NAME_LEN, l,
1009 dlm->node_num, qr->qr_node);
1017 for (i = 0; i < qr->qr_numregions; ++i) {
1031 qr->qr_domain, O2HB_MAX_REGION_NAME_LEN, r,
1032 qr->qr_node, dlm->node_num);
1044 struct dlm_query_region *qr = NULL;
1051 qr = kzalloc(sizeof(struct dlm_query_region), GFP_KERNEL);
1052 if (!qr) {
1058 qr->qr_node = dlm->node_num;
1059 qr->qr_namelen = strlen(dlm->name);
1060 memcpy(qr->qr_domain, dlm->name, qr->qr_namelen);
1063 qr->qr_numregions = o2hb_get_all_regions(qr->qr_regions,
1066 p = qr->qr_regions;
1067 for (i = 0; i < qr->qr_numregions; ++i, p += O2HB_MAX_REGION_NAME_LEN)
1078 ret = o2net_send_message(DLM_QUERY_REGION, DLM_MOD_KEY, qr,
1091 kfree(qr);
1098 struct dlm_query_region *qr;
1103 qr = (struct dlm_query_region *) msg->buf;
1105 mlog(0, "Node %u queries hb regions on domain %s\n", qr->qr_node,
1106 qr->qr_domain);
1109 local = kmalloc(sizeof(qr->qr_regions), GFP_KERNEL);
1116 dlm = __dlm_lookup_domain_full(qr->qr_domain, qr->qr_namelen);
1119 "before join domain\n", qr->qr_node, qr->qr_domain);
1124 if (dlm->joining_node != qr->qr_node) {
1126 "but joining node is %d\n", qr->qr_node, qr->qr_domain,
1135 "but active dlm protocol is %d.%d\n", qr->qr_node,
1136 qr->qr_domain, dlm->dlm_locking_proto.pv_major,
1141 status = dlm_match_regions(dlm, qr, local, sizeof(qr->qr_regions));