diff options
author | Alex Elder <elder@inktank.com> | 2013-03-14 20:09:06 +0100 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-05-02 06:17:57 +0200 |
commit | a19308048182d5f9e16b03b1d1c038d9346c7589 (patch) | |
tree | 1395d1027753afa2ab5caec1808385f3a68893be /net/ceph/osd_client.c | |
parent | libceph: record length of bio list with bio (diff) | |
download | linux-a19308048182d5f9e16b03b1d1c038d9346c7589.tar.xz linux-a19308048182d5f9e16b03b1d1c038d9346c7589.zip |
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.c | 2 |
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, ceph_msg_data_set_pagelist(msg, osd_data->pagelist); #ifdef CONFIG_BLOCK } else if (osd_data->type == CEPH_OSD_DATA_TYPE_BIO) { - ceph_msg_data_set_bio(msg, osd_data->bio); + ceph_msg_data_set_bio(msg, osd_data->bio, osd_data->bio_length); #endif } else { BUG_ON(osd_data->type != CEPH_OSD_DATA_TYPE_NONE); |