diff options
author | Alex Elder <elder@inktank.com> | 2013-04-19 16:34:49 -0400 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-05-02 00:19:06 -0400 |
commit | 6c57b5545d46e276381a15a59283c984cf3f94e3 (patch) | |
tree | 426b0aae89ea8f70df73fbd607d829fd8ed92f81 /net | |
parent | a51b272e9e99f912e8e07d4c9f58c1d433afea7c (diff) |
libceph: support pages for class request data
Add the ability to provide an array of pages as outbound request
data for object class method calls.
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/ceph/osd_client.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/net/ceph/osd_client.c b/net/ceph/osd_client.c index c842e877d504..467020c560b2 100644 --- a/net/ceph/osd_client.c +++ b/net/ceph/osd_client.c | |||
@@ -214,6 +214,18 @@ void osd_req_op_cls_request_data_pagelist( | |||
214 | } | 214 | } |
215 | EXPORT_SYMBOL(osd_req_op_cls_request_data_pagelist); | 215 | EXPORT_SYMBOL(osd_req_op_cls_request_data_pagelist); |
216 | 216 | ||
217 | void osd_req_op_cls_request_data_pages(struct ceph_osd_request *osd_req, | ||
218 | unsigned int which, struct page **pages, u64 length, | ||
219 | u32 alignment, bool pages_from_pool, bool own_pages) | ||
220 | { | ||
221 | struct ceph_osd_data *osd_data; | ||
222 | |||
223 | osd_data = osd_req_op_data(osd_req, which, cls, request_data); | ||
224 | ceph_osd_data_pages_init(osd_data, pages, length, alignment, | ||
225 | pages_from_pool, own_pages); | ||
226 | } | ||
227 | EXPORT_SYMBOL(osd_req_op_cls_request_data_pages); | ||
228 | |||
217 | void osd_req_op_cls_response_data_pages(struct ceph_osd_request *osd_req, | 229 | void osd_req_op_cls_response_data_pages(struct ceph_osd_request *osd_req, |
218 | unsigned int which, struct page **pages, u64 length, | 230 | unsigned int which, struct page **pages, u64 length, |
219 | u32 alignment, bool pages_from_pool, bool own_pages) | 231 | u32 alignment, bool pages_from_pool, bool own_pages) |