Lines Matching refs:msg_size
556 int msg_size; in ceph_osdc_alloc_messages() local
562 msg_size = CEPH_ENCODING_START_BLK_LEN + in ceph_osdc_alloc_messages()
564 msg_size += 4 + 4 + 4; /* hash, osdmap_epoch, flags */ in ceph_osdc_alloc_messages()
565 msg_size += CEPH_ENCODING_START_BLK_LEN + in ceph_osdc_alloc_messages()
567 msg_size += sizeof(struct ceph_blkin_trace_info); /* trace */ in ceph_osdc_alloc_messages()
568 msg_size += 4 + sizeof(struct ceph_timespec); /* client_inc, mtime */ in ceph_osdc_alloc_messages()
569 msg_size += CEPH_ENCODING_START_BLK_LEN + in ceph_osdc_alloc_messages()
571 msg_size += 4 + req->r_base_oid.name_len; /* oid */ in ceph_osdc_alloc_messages()
572 msg_size += 2 + req->r_num_ops * sizeof(struct ceph_osd_op); in ceph_osdc_alloc_messages()
573 msg_size += 8; /* snapid */ in ceph_osdc_alloc_messages()
574 msg_size += 8; /* snap_seq */ in ceph_osdc_alloc_messages()
575 msg_size += 4 + 8 * (req->r_snapc ? req->r_snapc->num_snaps : 0); in ceph_osdc_alloc_messages()
576 msg_size += 4 + 8; /* retry_attempt, features */ in ceph_osdc_alloc_messages()
581 msg = ceph_msg_new(CEPH_MSG_OSD_OP, msg_size, gfp, true); in ceph_osdc_alloc_messages()
589 msg_size = OSD_OPREPLY_FRONT_LEN; in ceph_osdc_alloc_messages()
590 msg_size += req->r_base_oid.name_len; in ceph_osdc_alloc_messages()
591 msg_size += req->r_num_ops * sizeof(struct ceph_osd_op); in ceph_osdc_alloc_messages()
596 msg = ceph_msg_new(CEPH_MSG_OSD_OPREPLY, msg_size, gfp, true); in ceph_osdc_alloc_messages()
3977 int msg_size; in create_backoff_message() local
3979 msg_size = CEPH_ENCODING_START_BLK_LEN + in create_backoff_message()
3981 msg_size += 4 + 1 + 8; /* map_epoch, op, id */ in create_backoff_message()
3982 msg_size += CEPH_ENCODING_START_BLK_LEN + in create_backoff_message()
3984 msg_size += CEPH_ENCODING_START_BLK_LEN + in create_backoff_message()
3987 msg = ceph_msg_new(CEPH_MSG_OSD_BACKOFF, msg_size, GFP_NOIO, true); in create_backoff_message()