mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-12 08:00:09 +00: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 <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
This commit is contained in:
parent
a51b272e9e
commit
6c57b5545d
@ -273,6 +273,11 @@ extern void osd_req_op_extent_osd_data_bio(struct ceph_osd_request *,
|
|||||||
extern void osd_req_op_cls_request_data_pagelist(struct ceph_osd_request *,
|
extern void osd_req_op_cls_request_data_pagelist(struct ceph_osd_request *,
|
||||||
unsigned int which,
|
unsigned int which,
|
||||||
struct ceph_pagelist *pagelist);
|
struct ceph_pagelist *pagelist);
|
||||||
|
extern void osd_req_op_cls_request_data_pages(struct ceph_osd_request *,
|
||||||
|
unsigned int which,
|
||||||
|
struct page **pages, u64 length,
|
||||||
|
u32 alignment, bool pages_from_pool,
|
||||||
|
bool own_pages);
|
||||||
extern void osd_req_op_cls_response_data_pages(struct ceph_osd_request *,
|
extern void osd_req_op_cls_response_data_pages(struct ceph_osd_request *,
|
||||||
unsigned int which,
|
unsigned int which,
|
||||||
struct page **pages, u64 length,
|
struct page **pages, u64 length,
|
||||||
|
@ -214,6 +214,18 @@ void osd_req_op_cls_request_data_pagelist(
|
|||||||
}
|
}
|
||||||
EXPORT_SYMBOL(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,
|
void osd_req_op_cls_response_data_pages(struct ceph_osd_request *osd_req,
|
||||||
unsigned int which, struct page **pages, u64 length,
|
unsigned int which, struct page **pages, u64 length,
|
||||||
u32 alignment, bool pages_from_pool, bool own_pages)
|
u32 alignment, bool pages_from_pool, bool own_pages)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user