aboutsummaryrefslogtreecommitdiffstats
path: root/net/ceph/osd_client.c
diff options
context:
space:
mode:
authorAlex Elder <elder@inktank.com>2013-03-14 15:09:06 -0400
committerSage Weil <sage@inktank.com>2013-05-02 00:17:57 -0400
commita19308048182d5f9e16b03b1d1c038d9346c7589 (patch)
tree1395d1027753afa2ab5caec1808385f3a68893be /net/ceph/osd_client.c
parentfdce58ccb5df621695b079378c619046acabc778 (diff)
libceph: record message data length
Keep track of the length of the data portion for a message in a separate field in the ceph_msg structure. This information has been maintained in wire byte order in the message header, but that's going to change soon. Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'net/ceph/osd_client.c')
-rw-r--r--net/ceph/osd_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ceph/osd_client.c b/net/ceph/osd_client.c
index e0887923e5ab..0b4951e27532 100644
--- a/net/ceph/osd_client.c
+++ b/net/ceph/osd_client.c
@@ -1848,7 +1848,7 @@ static void ceph_osdc_msg_data_set(struct ceph_msg *msg,
1848 ceph_msg_data_set_pagelist(msg, osd_data->pagelist); 1848 ceph_msg_data_set_pagelist(msg, osd_data->pagelist);
1849#ifdef CONFIG_BLOCK 1849#ifdef CONFIG_BLOCK
1850 } else if (osd_data->type == CEPH_OSD_DATA_TYPE_BIO) { 1850 } else if (osd_data->type == CEPH_OSD_DATA_TYPE_BIO) {
1851 ceph_msg_data_set_bio(msg, osd_data->bio); 1851 ceph_msg_data_set_bio(msg, osd_data->bio, osd_data->bio_length);
1852#endif 1852#endif
1853 } else { 1853 } else {
1854 BUG_ON(osd_data->type != CEPH_OSD_DATA_TYPE_NONE); 1854 BUG_ON(osd_data->type != CEPH_OSD_DATA_TYPE_NONE);