diff options
author | Alex Elder <elder@inktank.com> | 2013-04-03 02:28:57 -0400 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-05-02 00:18:06 -0400 |
commit | 43bfe5de9fa78e07248b70992ce50321efec622c (patch) | |
tree | 8aa7ce9ad14551bdfcb1bf166a90b65a3dab7c02 /include/linux/ceph | |
parent | 9fc6e0647180f72392f03a29863b6602e22aa024 (diff) |
libceph: define osd data initialization helpers
Define and use functions that encapsulate the initializion of a
ceph_osd_data structure.
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'include/linux/ceph')
-rw-r--r-- | include/linux/ceph/osd_client.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/ceph/osd_client.h b/include/linux/ceph/osd_client.h index 5ee1a3776b4b..af60dac1f9c0 100644 --- a/include/linux/ceph/osd_client.h +++ b/include/linux/ceph/osd_client.h | |||
@@ -280,6 +280,17 @@ static inline void ceph_osdc_put_request(struct ceph_osd_request *req) | |||
280 | kref_put(&req->r_kref, ceph_osdc_release_request); | 280 | kref_put(&req->r_kref, ceph_osdc_release_request); |
281 | } | 281 | } |
282 | 282 | ||
283 | extern void ceph_osd_data_pages_init(struct ceph_osd_data *osd_data, | ||
284 | struct page **pages, u64 length, | ||
285 | u32 alignment, bool pages_from_pool, | ||
286 | bool own_pages); | ||
287 | extern void ceph_osd_data_pagelist_init(struct ceph_osd_data *osd_data, | ||
288 | struct ceph_pagelist *pagelist); | ||
289 | #ifdef CONFIG_BLOCK | ||
290 | extern void ceph_osd_data_bio_init(struct ceph_osd_data *osd_data, | ||
291 | struct bio *bio, size_t bio_length); | ||
292 | #endif /* CONFIG_BLOCK */ | ||
293 | |||
283 | extern int ceph_osdc_start_request(struct ceph_osd_client *osdc, | 294 | extern int ceph_osdc_start_request(struct ceph_osd_client *osdc, |
284 | struct ceph_osd_request *req, | 295 | struct ceph_osd_request *req, |
285 | bool nofail); | 296 | bool nofail); |