diff options
-rw-r--r-- | include/linux/ceph/osd_client.h | 5 | ||||
-rw-r--r-- | net/ceph/osd_client.c | 12 |
2 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/ceph/osd_client.h b/include/linux/ceph/osd_client.h index 4d84a2b44f18..4191cd2c55e5 100644 --- a/include/linux/ceph/osd_client.h +++ b/include/linux/ceph/osd_client.h | |||
@@ -273,6 +273,11 @@ extern void osd_req_op_extent_osd_data_bio(struct ceph_osd_request *, | |||
273 | extern void osd_req_op_cls_request_data_pagelist(struct ceph_osd_request *, | 273 | extern void osd_req_op_cls_request_data_pagelist(struct ceph_osd_request *, |
274 | unsigned int which, | 274 | unsigned int which, |
275 | struct ceph_pagelist *pagelist); | 275 | struct ceph_pagelist *pagelist); |
276 | extern void osd_req_op_cls_request_data_pages(struct ceph_osd_request *, | ||
277 | unsigned int which, | ||
278 | struct page **pages, u64 length, | ||
279 | u32 alignment, bool pages_from_pool, | ||
280 | bool own_pages); | ||
276 | extern void osd_req_op_cls_response_data_pages(struct ceph_osd_request *, | 281 | extern void osd_req_op_cls_response_data_pages(struct ceph_osd_request *, |
277 | unsigned int which, | 282 | unsigned int which, |
278 | struct page **pages, u64 length, | 283 | struct page **pages, u64 length, |
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) |