diff options
| author | Douglas Fuller <dfuller@redhat.com> | 2015-06-17 14:49:45 -0400 |
|---|---|---|
| committer | Ilya Dryomov <idryomov@gmail.com> | 2016-08-24 17:49:15 -0400 |
| commit | 428a715811fe74e8a8f09b830c8d3b5245096f8d (patch) | |
| tree | f71c664112b5513b29bf6b3395333a778096f3b8 /include/linux/ceph | |
| parent | a4ed38d7a180f184a6e7aedd09db9ca4b1e6a71c (diff) | |
libceph: add ceph_osdc_call() single-page helper
Add a convenience function to osd_client to send Ceph OSD
'class' ops. The interface assumes that the request and
reply data each consist of single pages.
Signed-off-by: Douglas Fuller <dfuller@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Mike Christie <mchristi@redhat.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Diffstat (limited to 'include/linux/ceph')
| -rw-r--r-- | include/linux/ceph/osd_client.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/ceph/osd_client.h b/include/linux/ceph/osd_client.h index 19821a191732..96337b15a60d 100644 --- a/include/linux/ceph/osd_client.h +++ b/include/linux/ceph/osd_client.h | |||
| @@ -397,6 +397,14 @@ extern void ceph_osdc_sync(struct ceph_osd_client *osdc); | |||
| 397 | extern void ceph_osdc_flush_notifies(struct ceph_osd_client *osdc); | 397 | extern void ceph_osdc_flush_notifies(struct ceph_osd_client *osdc); |
| 398 | void ceph_osdc_maybe_request_map(struct ceph_osd_client *osdc); | 398 | void ceph_osdc_maybe_request_map(struct ceph_osd_client *osdc); |
| 399 | 399 | ||
| 400 | int ceph_osdc_call(struct ceph_osd_client *osdc, | ||
| 401 | struct ceph_object_id *oid, | ||
| 402 | struct ceph_object_locator *oloc, | ||
| 403 | const char *class, const char *method, | ||
| 404 | unsigned int flags, | ||
| 405 | struct page *req_page, size_t req_len, | ||
| 406 | struct page *resp_page, size_t *resp_len); | ||
| 407 | |||
| 400 | extern int ceph_osdc_readpages(struct ceph_osd_client *osdc, | 408 | extern int ceph_osdc_readpages(struct ceph_osd_client *osdc, |
| 401 | struct ceph_vino vino, | 409 | struct ceph_vino vino, |
| 402 | struct ceph_file_layout *layout, | 410 | struct ceph_file_layout *layout, |
