diff options
author | Alex Elder <elder@inktank.com> | 2013-03-07 16:38:28 -0500 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-05-02 00:17:01 -0400 |
commit | e766d7b55e10f93c7bab298135a4e90dcc46620d (patch) | |
tree | 0b3bebb5ee06c1a63d2155c6ba3ce52f83d63fe7 /include/linux | |
parent | 6aaa4511deb4b0fd776d1153dc63a89cdc024fb8 (diff) |
libceph: implement pages array cursor
Implement and use cursor routines for page array message data items
for outbound message data.
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/ceph/messenger.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/ceph/messenger.h b/include/linux/ceph/messenger.h index 76b4645e2dff..b53b9ef65009 100644 --- a/include/linux/ceph/messenger.h +++ b/include/linux/ceph/messenger.h | |||
@@ -105,6 +105,12 @@ struct ceph_msg_data_cursor { | |||
105 | unsigned int vector_offset; /* bytes from vector */ | 105 | unsigned int vector_offset; /* bytes from vector */ |
106 | }; | 106 | }; |
107 | #endif /* CONFIG_BLOCK */ | 107 | #endif /* CONFIG_BLOCK */ |
108 | struct { /* pages */ | ||
109 | size_t resid; /* bytes from array */ | ||
110 | unsigned int page_offset; /* offset in page */ | ||
111 | unsigned short page_index; /* index in array */ | ||
112 | unsigned short page_count; /* pages in array */ | ||
113 | }; | ||
108 | struct { /* pagelist */ | 114 | struct { /* pagelist */ |
109 | struct page *page; /* page from list */ | 115 | struct page *page; /* page from list */ |
110 | size_t offset; /* bytes from list */ | 116 | size_t offset; /* bytes from list */ |