Lines Matching defs:msg_size
610 int msg_size;
617 msg_size = CEPH_ENCODING_START_BLK_LEN +
619 msg_size += 4 + 4 + 4; /* hash, osdmap_epoch, flags */
620 msg_size += CEPH_ENCODING_START_BLK_LEN +
622 msg_size += sizeof(struct ceph_blkin_trace_info); /* trace */
623 msg_size += 4 + sizeof(struct ceph_timespec); /* client_inc, mtime */
624 msg_size += CEPH_ENCODING_START_BLK_LEN +
626 msg_size += 4 + req->r_base_oid.name_len; /* oid */
627 msg_size += 2 + req->r_num_ops * sizeof(struct ceph_osd_op);
628 msg_size += 8; /* snapid */
629 msg_size += 8; /* snap_seq */
630 msg_size += 4 + 8 * (req->r_snapc ? req->r_snapc->num_snaps : 0);
631 msg_size += 4 + 8; /* retry_attempt, features */
634 msg = ceph_msgpool_get(&osdc->msgpool_op, msg_size,
637 msg = ceph_msg_new2(CEPH_MSG_OSD_OP, msg_size,
646 msg_size = OSD_OPREPLY_FRONT_LEN;
647 msg_size += req->r_base_oid.name_len;
648 msg_size += req->r_num_ops * sizeof(struct ceph_osd_op);
651 msg = ceph_msgpool_get(&osdc->msgpool_op_reply, msg_size,
654 msg = ceph_msg_new2(CEPH_MSG_OSD_OPREPLY, msg_size,
4380 int msg_size;
4382 msg_size = CEPH_ENCODING_START_BLK_LEN +
4384 msg_size += 4 + 1 + 8; /* map_epoch, op, id */
4385 msg_size += CEPH_ENCODING_START_BLK_LEN +
4387 msg_size += CEPH_ENCODING_START_BLK_LEN +
4390 msg = ceph_msg_new(CEPH_MSG_OSD_BACKOFF, msg_size, GFP_NOIO, true);