static void process_ack(struct ceph_connection *con)
{
struct ceph_msg *m;
- u32 ack = le32_to_cpu(con->in_temp_ack);
+ u64 ack = le64_to_cpu(con->in_temp_ack);
u64 seq;
mutex_lock(&con->out_mutex);
struct ceph_msg_header *hdr)
{
struct ceph_mon_client *monc = con->private;
- int type = le32_to_cpu(hdr->type);
+ int type = le16_to_cpu(hdr->type);
switch (type) {
case CEPH_MSG_CLIENT_MOUNT_ACK:
ceph_osdc_put_request(req);
return ERR_PTR(PTR_ERR(msg));
}
- msg->hdr.type = cpu_to_le32(CEPH_MSG_OSD_OP);
+ msg->hdr.type = cpu_to_le16(CEPH_MSG_OSD_OP);
memset(msg->front.iov_base, 0, msg->front.iov_len);
head = msg->front.iov_base;
op = (void *)(head + 1);
{
struct ceph_osd *osd = con->private;
struct ceph_osd_client *osdc = osd->o_osdc;
- int type = le32_to_cpu(hdr->type);
+ int type = le16_to_cpu(hdr->type);
switch (type) {
case CEPH_MSG_OSD_OPREPLY: