aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ceph
diff options
context:
space:
mode:
authorAlex Elder <elder@inktank.com>2013-04-05 15:46:01 -0400
committerSage Weil <sage@inktank.com>2013-05-02 00:18:28 -0400
commitc851c49591ebf000c610711e39eea7da5ff05b21 (patch)
tree917451c570fae240e1902085a75d7ff970deb981 /include/linux/ceph
parentf759ebb968dbf185fc079dd2e824b1aa3a3d71aa (diff)
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/linux/ceph')
-rw-r--r--include/linux/ceph/messenger.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/ceph/messenger.h b/include/linux/ceph/messenger.h
index cdeebae03e0d..4fb870a5b5fc 100644
--- a/include/linux/ceph/messenger.h
+++ b/include/linux/ceph/messenger.h
@@ -116,7 +116,10 @@ struct ceph_msg_data {
116 enum ceph_msg_data_type type; 116 enum ceph_msg_data_type type;
117 union { 117 union {
118#ifdef CONFIG_BLOCK 118#ifdef CONFIG_BLOCK
119 struct bio *bio; 119 struct {
120 struct bio *bio;
121 size_t bio_length;
122 };
120#endif /* CONFIG_BLOCK */ 123#endif /* CONFIG_BLOCK */
121 struct { 124 struct {
122 struct page **pages; /* NOT OWNER. */ 125 struct page **pages; /* NOT OWNER. */