aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ceph
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:18:30 -0400
commit8ae4f4f5c056150d5480710ab356801e84d01a3d (patch)
tree8e468e214e55cb4f6f0858d127bc7f5cfa5569fb /include/linux/ceph
parent36153ec9dd6287d7cedf6afb51453c445d946cee (diff)
libceph: have cursor point to data
Rather than having a ceph message data item point to the cursor it's associated with, have the cursor point to a data item. This will allow a message cursor to be used for more than one data item. 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.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/ceph/messenger.h b/include/linux/ceph/messenger.h
index e7557242817c..8846ff610502 100644
--- a/include/linux/ceph/messenger.h
+++ b/include/linux/ceph/messenger.h
@@ -104,13 +104,13 @@ struct ceph_msg_data {
104 }; 104 };
105 struct ceph_pagelist *pagelist; 105 struct ceph_pagelist *pagelist;
106 }; 106 };
107 struct ceph_msg_data_cursor *cursor;
108}; 107};
109 108
110struct ceph_msg_data_cursor { 109struct ceph_msg_data_cursor {
111 size_t resid; /* bytes not yet consumed */ 110 struct ceph_msg_data *data; /* data item this describes */
112 bool last_piece; /* now at last piece of data item */ 111 size_t resid; /* bytes not yet consumed */
113 bool need_crc; /* new piece; crc update needed */ 112 bool last_piece; /* current is last piece */
113 bool need_crc; /* crc update needed */
114 union { 114 union {
115#ifdef CONFIG_BLOCK 115#ifdef CONFIG_BLOCK
116 struct { /* bio */ 116 struct { /* bio */