Lines Matching refs:msg_size

587 	int msg_size;  in __ceph_osdc_alloc_messages()  local
594 msg_size = CEPH_ENCODING_START_BLK_LEN + in __ceph_osdc_alloc_messages()
596 msg_size += 4 + 4 + 4; /* hash, osdmap_epoch, flags */ in __ceph_osdc_alloc_messages()
597 msg_size += CEPH_ENCODING_START_BLK_LEN + in __ceph_osdc_alloc_messages()
599 msg_size += sizeof(struct ceph_blkin_trace_info); /* trace */ in __ceph_osdc_alloc_messages()
600 msg_size += 4 + sizeof(struct ceph_timespec); /* client_inc, mtime */ in __ceph_osdc_alloc_messages()
601 msg_size += CEPH_ENCODING_START_BLK_LEN + in __ceph_osdc_alloc_messages()
603 msg_size += 4 + req->r_base_oid.name_len; /* oid */ in __ceph_osdc_alloc_messages()
604 msg_size += 2 + req->r_num_ops * sizeof(struct ceph_osd_op); in __ceph_osdc_alloc_messages()
605 msg_size += 8; /* snapid */ in __ceph_osdc_alloc_messages()
606 msg_size += 8; /* snap_seq */ in __ceph_osdc_alloc_messages()
607 msg_size += 4 + 8 * (req->r_snapc ? req->r_snapc->num_snaps : 0); in __ceph_osdc_alloc_messages()
608 msg_size += 4 + 8; /* retry_attempt, features */ in __ceph_osdc_alloc_messages()
611 msg = ceph_msgpool_get(&osdc->msgpool_op, msg_size, in __ceph_osdc_alloc_messages()
614 msg = ceph_msg_new2(CEPH_MSG_OSD_OP, msg_size, in __ceph_osdc_alloc_messages()
623 msg_size = OSD_OPREPLY_FRONT_LEN; in __ceph_osdc_alloc_messages()
624 msg_size += req->r_base_oid.name_len; in __ceph_osdc_alloc_messages()
625 msg_size += req->r_num_ops * sizeof(struct ceph_osd_op); in __ceph_osdc_alloc_messages()
628 msg = ceph_msgpool_get(&osdc->msgpool_op_reply, msg_size, in __ceph_osdc_alloc_messages()
631 msg = ceph_msg_new2(CEPH_MSG_OSD_OPREPLY, msg_size, in __ceph_osdc_alloc_messages()
4359 int msg_size; in create_backoff_message() local
4361 msg_size = CEPH_ENCODING_START_BLK_LEN + in create_backoff_message()
4363 msg_size += 4 + 1 + 8; /* map_epoch, op, id */ in create_backoff_message()
4364 msg_size += CEPH_ENCODING_START_BLK_LEN + in create_backoff_message()
4366 msg_size += CEPH_ENCODING_START_BLK_LEN + in create_backoff_message()
4369 msg = ceph_msg_new(CEPH_MSG_OSD_BACKOFF, msg_size, GFP_NOIO, true); in create_backoff_message()