Lines Matching refs:head
394 void hmdfs_client_recv_readpage(struct hmdfs_head_cmd *head, int err,
398 int ret = le32_to_cpu(head->ret_code);
408 hmdfs_client_resp_statis(async_work->head.peer->sbi, F_READPAGE,
411 trace_hmdfs_client_recv_readpage(async_work->head.peer,
1052 struct hmdfs_msg_idr_head *head = NULL;
1055 head = idr_get_next(&peer->msg_idr, id);
1056 if (head && head->type < MSG_IDR_MAX && head->type >= 0)
1057 kref_get(&head->ref);
1061 return head;
1069 struct hmdfs_msg_idr_head *head = NULL;
1071 for (id = 0; (head = hmdfs_get_msg_next(conn, &id)) != NULL; ++id) {
1072 switch (head->type) {
1074 head_put(head);
1075 head_put(head);
1079 hmdfs_response_wakeup((struct sendmsg_wait_queue *)head,
1081 hmdfs_debug("wakeup id=%d", head->msg_id);
1082 msg_put((struct sendmsg_wait_queue *)head);
1086 (struct hmdfs_msg_parasite *)head);
1087 hmdfs_debug("wakeup parasite id=%d", head->msg_id);
1088 mp_put((struct hmdfs_msg_parasite *)head);
1093 (struct hmdfs_async_work *)head);
1094 hmdfs_debug("wakeup async work id=%d", head->msg_id);
1095 asw_put((struct hmdfs_async_work *)head);
1098 hmdfs_err("Bad type=%d id=%d", head->type,
1099 head->msg_id);