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>
This commit is contained in:
parent
fe38a2b67b
commit
dd236fcb65
2 changed files with 99 additions and 26 deletions
|
|
@ -97,8 +97,12 @@ static __inline__ bool ceph_msg_data_type_valid(enum ceph_msg_data_type type)
|
|||
|
||||
struct ceph_msg_data_cursor {
|
||||
bool last_piece; /* now at last piece of data item */
|
||||
struct page *page; /* current page in pagelist */
|
||||
size_t offset; /* pagelist bytes consumed */
|
||||
union {
|
||||
struct { /* pagelist */
|
||||
struct page *page; /* page from list */
|
||||
size_t offset; /* bytes from list */
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
struct ceph_msg_data {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue