diff options
Diffstat (limited to 'fs/ceph/osd_client.c')
-rw-r--r-- | fs/ceph/osd_client.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ceph/osd_client.c b/fs/ceph/osd_client.c index a51d0df2af30..a44b3b6374ee 100644 --- a/fs/ceph/osd_client.c +++ b/fs/ceph/osd_client.c | |||
@@ -164,7 +164,7 @@ struct ceph_osd_request *ceph_osdc_new_request(struct ceph_osd_client *osdc, | |||
164 | msg = ceph_msgpool_get(&osdc->msgpool_op_reply, 0); | 164 | msg = ceph_msgpool_get(&osdc->msgpool_op_reply, 0); |
165 | else | 165 | else |
166 | msg = ceph_msg_new(CEPH_MSG_OSD_OPREPLY, | 166 | msg = ceph_msg_new(CEPH_MSG_OSD_OPREPLY, |
167 | OSD_OPREPLY_FRONT_LEN, 0, 0, NULL); | 167 | OSD_OPREPLY_FRONT_LEN); |
168 | if (!msg) { | 168 | if (!msg) { |
169 | ceph_osdc_put_request(req); | 169 | ceph_osdc_put_request(req); |
170 | return NULL; | 170 | return NULL; |
@@ -178,7 +178,7 @@ struct ceph_osd_request *ceph_osdc_new_request(struct ceph_osd_client *osdc, | |||
178 | if (use_mempool) | 178 | if (use_mempool) |
179 | msg = ceph_msgpool_get(&osdc->msgpool_op, 0); | 179 | msg = ceph_msgpool_get(&osdc->msgpool_op, 0); |
180 | else | 180 | else |
181 | msg = ceph_msg_new(CEPH_MSG_OSD_OP, msg_size, 0, 0, NULL); | 181 | msg = ceph_msg_new(CEPH_MSG_OSD_OP, msg_size); |
182 | if (!msg) { | 182 | if (!msg) { |
183 | ceph_osdc_put_request(req); | 183 | ceph_osdc_put_request(req); |
184 | return NULL; | 184 | return NULL; |
@@ -1392,7 +1392,7 @@ static struct ceph_msg *get_reply(struct ceph_connection *con, | |||
1392 | if (front > req->r_reply->front.iov_len) { | 1392 | if (front > req->r_reply->front.iov_len) { |
1393 | pr_warning("get_reply front %d > preallocated %d\n", | 1393 | pr_warning("get_reply front %d > preallocated %d\n", |
1394 | front, (int)req->r_reply->front.iov_len); | 1394 | front, (int)req->r_reply->front.iov_len); |
1395 | m = ceph_msg_new(CEPH_MSG_OSD_OPREPLY, front, 0, 0, NULL); | 1395 | m = ceph_msg_new(CEPH_MSG_OSD_OPREPLY, front); |
1396 | if (!m) | 1396 | if (!m) |
1397 | goto out; | 1397 | goto out; |
1398 | ceph_msg_put(req->r_reply); | 1398 | ceph_msg_put(req->r_reply); |
@@ -1435,7 +1435,7 @@ static struct ceph_msg *alloc_msg(struct ceph_connection *con, | |||
1435 | 1435 | ||
1436 | switch (type) { | 1436 | switch (type) { |
1437 | case CEPH_MSG_OSD_MAP: | 1437 | case CEPH_MSG_OSD_MAP: |
1438 | return ceph_msg_new(type, front, 0, 0, NULL); | 1438 | return ceph_msg_new(type, front); |
1439 | case CEPH_MSG_OSD_OPREPLY: | 1439 | case CEPH_MSG_OSD_OPREPLY: |
1440 | return get_reply(con, hdr, skip); | 1440 | return get_reply(con, hdr, skip); |
1441 | default: | 1441 | default: |