diff options
Diffstat (limited to 'include/linux/ceph')
| -rw-r--r-- | include/linux/ceph/messenger.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/ceph/messenger.h b/include/linux/ceph/messenger.h index 5860dd0c2caf..14862438faff 100644 --- a/include/linux/ceph/messenger.h +++ b/include/linux/ceph/messenger.h | |||
| @@ -95,6 +95,12 @@ static __inline__ bool ceph_msg_data_type_valid(enum ceph_msg_data_type type) | |||
| 95 | } | 95 | } |
| 96 | } | 96 | } |
| 97 | 97 | ||
| 98 | struct ceph_msg_data_cursor { | ||
| 99 | bool last_piece; /* now at last piece of data item */ | ||
| 100 | struct page *page; /* current page in pagelist */ | ||
| 101 | size_t offset; /* pagelist bytes consumed */ | ||
| 102 | }; | ||
| 103 | |||
| 98 | struct ceph_msg_data { | 104 | struct ceph_msg_data { |
| 99 | enum ceph_msg_data_type type; | 105 | enum ceph_msg_data_type type; |
| 100 | union { | 106 | union { |
| @@ -112,6 +118,7 @@ struct ceph_msg_data { | |||
| 112 | }; | 118 | }; |
| 113 | struct ceph_pagelist *pagelist; | 119 | struct ceph_pagelist *pagelist; |
| 114 | }; | 120 | }; |
| 121 | struct ceph_msg_data_cursor cursor; /* pagelist only */ | ||
| 115 | }; | 122 | }; |
| 116 | 123 | ||
| 117 | /* | 124 | /* |
