diff options
| author | Alex Elder <elder@inktank.com> | 2013-03-14 15:09:06 -0400 |
|---|---|---|
| committer | Sage Weil <sage@inktank.com> | 2013-05-02 00:18:32 -0400 |
| commit | 5240d9f95dfe0f0701b35fbff1cb5b70825ad23f (patch) | |
| tree | 570f8f274803e56bb86e43180b230f3d70a61649 /include/linux/ceph | |
| parent | 8ae4f4f5c056150d5480710ab356801e84d01a3d (diff) | |
libceph: replace message data pointer with list
In place of the message data pointer, use a list head which links
through message data items. For now we only support a single entry
on that list.
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.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/ceph/messenger.h b/include/linux/ceph/messenger.h index 8846ff610502..318da0170a1e 100644 --- a/include/linux/ceph/messenger.h +++ b/include/linux/ceph/messenger.h | |||
| @@ -89,6 +89,7 @@ static __inline__ bool ceph_msg_data_type_valid(enum ceph_msg_data_type type) | |||
| 89 | } | 89 | } |
| 90 | 90 | ||
| 91 | struct ceph_msg_data { | 91 | struct ceph_msg_data { |
| 92 | struct list_head links; /* ceph_msg->data */ | ||
| 92 | enum ceph_msg_data_type type; | 93 | enum ceph_msg_data_type type; |
| 93 | union { | 94 | union { |
| 94 | #ifdef CONFIG_BLOCK | 95 | #ifdef CONFIG_BLOCK |
| @@ -143,7 +144,7 @@ struct ceph_msg { | |||
| 143 | struct ceph_buffer *middle; | 144 | struct ceph_buffer *middle; |
| 144 | 145 | ||
| 145 | size_t data_length; | 146 | size_t data_length; |
| 146 | struct ceph_msg_data *data; | 147 | struct list_head data; |
| 147 | struct ceph_msg_data_cursor cursor; | 148 | struct ceph_msg_data_cursor cursor; |
| 148 | 149 | ||
| 149 | struct ceph_connection *con; | 150 | struct ceph_connection *con; |
