mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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 <[email protected]> Reviewed-by: Josh Durgin <[email protected]>
This commit is contained in:
parent
a51b272e9e
commit
6c57b5545d
2 changed files with 17 additions and 0 deletions
|
|
@ -214,6 +214,18 @@ void osd_req_op_cls_request_data_pagelist(
|
|||
}
|
||||
EXPORT_SYMBOL(osd_req_op_cls_request_data_pagelist);
|
||||
|
||||
void osd_req_op_cls_request_data_pages(struct ceph_osd_request *osd_req,
|
||||
unsigned int which, struct page **pages, u64 length,
|
||||
u32 alignment, bool pages_from_pool, bool own_pages)
|
||||
{
|
||||
struct ceph_osd_data *osd_data;
|
||||
|
||||
osd_data = osd_req_op_data(osd_req, which, cls, request_data);
|
||||
ceph_osd_data_pages_init(osd_data, pages, length, alignment,
|
||||
pages_from_pool, own_pages);
|
||||
}
|
||||
EXPORT_SYMBOL(osd_req_op_cls_request_data_pages);
|
||||
|
||||
void osd_req_op_cls_response_data_pages(struct ceph_osd_request *osd_req,
|
||||
unsigned int which, struct page **pages, u64 length,
|
||||
u32 alignment, bool pages_from_pool, bool own_pages)
|
||||
|
|
|
|||
Loading…
Reference in a new issue