diff options
author | Alex Elder <elder@inktank.com> | 2013-03-07 00:39:39 -0500 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-05-02 00:16:57 -0400 |
commit | dd236fcb65d7b6b80c408cb5f66aab55f4594284 (patch) | |
tree | 426afba9ffbe61535085b76066c08db217b3a12d /include/linux/ceph/messenger.h | |
parent | fe38a2b67bc6b3a60da82a23e9082256a30e39d9 (diff) |
libceph: prepare for other message data item types
This just inserts some infrastructure in preparation for handling
other types of ceph message data items. No functional changes,
just trying to simplify review by separating out some noise.
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'include/linux/ceph/messenger.h')
-rw-r--r-- | include/linux/ceph/messenger.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/ceph/messenger.h b/include/linux/ceph/messenger.h index 14862438faff..716c3fdeb257 100644 --- a/include/linux/ceph/messenger.h +++ b/include/linux/ceph/messenger.h | |||
@@ -97,8 +97,12 @@ static __inline__ bool ceph_msg_data_type_valid(enum ceph_msg_data_type type) | |||
97 | 97 | ||
98 | struct ceph_msg_data_cursor { | 98 | struct ceph_msg_data_cursor { |
99 | bool last_piece; /* now at last piece of data item */ | 99 | bool last_piece; /* now at last piece of data item */ |
100 | struct page *page; /* current page in pagelist */ | 100 | union { |
101 | size_t offset; /* pagelist bytes consumed */ | 101 | struct { /* pagelist */ |
102 | struct page *page; /* page from list */ | ||
103 | size_t offset; /* bytes from list */ | ||
104 | }; | ||
105 | }; | ||
102 | }; | 106 | }; |
103 | 107 | ||
104 | struct ceph_msg_data { | 108 | struct ceph_msg_data { |