diff options
author | Alex Elder <elder@inktank.com> | 2013-04-05 19:46:01 (GMT) |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-05-02 04:18:28 (GMT) |
commit | c851c49591ebf000c610711e39eea7da5ff05b21 (patch) | |
tree | 917451c570fae240e1902085a75d7ff970deb981 /include | |
parent | f759ebb968dbf185fc079dd2e824b1aa3a3d71aa (diff) | |
download | linux-fsl-qoriq-c851c49591ebf000c610711e39eea7da5ff05b21.tar.xz |
libceph: record bio length
The bio is the only data item type that doesn't record its full
length. Fix that.
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ceph/messenger.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/ceph/messenger.h b/include/linux/ceph/messenger.h index cdeebae..4fb870a 100644 --- a/include/linux/ceph/messenger.h +++ b/include/linux/ceph/messenger.h @@ -116,7 +116,10 @@ struct ceph_msg_data { enum ceph_msg_data_type type; union { #ifdef CONFIG_BLOCK - struct bio *bio; + struct { + struct bio *bio; + size_t bio_length; + }; #endif /* CONFIG_BLOCK */ struct { struct page **pages; /* NOT OWNER. */ |