diff options
| author | Ilya Dryomov <ilya.dryomov@inktank.com> | 2014-06-20 06:14:42 -0400 |
|---|---|---|
| committer | Ilya Dryomov <ilya.dryomov@inktank.com> | 2014-07-08 07:08:43 -0400 |
| commit | 9e94af202afd961da39f82b55ba83edd4ad30e98 (patch) | |
| tree | 077b2d7a02cce19077f8ebabaf71bcbb8c093263 /include/linux/ceph | |
| parent | 0215e44bb390a968d01404aa2f35af56f9b55fc8 (diff) | |
libceph: move and add dout()s to ceph_osdc_request_{get,put}()
Add dout()s to ceph_osdc_request_{get,put}(). Also move them to .c and
turn kref release callback into a static function.
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Diffstat (limited to 'include/linux/ceph')
| -rw-r--r-- | include/linux/ceph/osd_client.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/include/linux/ceph/osd_client.h b/include/linux/ceph/osd_client.h index 7490a03ac163..a8d5652f589d 100644 --- a/include/linux/ceph/osd_client.h +++ b/include/linux/ceph/osd_client.h | |||
| @@ -328,15 +328,8 @@ extern void ceph_osdc_set_request_linger(struct ceph_osd_client *osdc, | |||
| 328 | extern void ceph_osdc_unregister_linger_request(struct ceph_osd_client *osdc, | 328 | extern void ceph_osdc_unregister_linger_request(struct ceph_osd_client *osdc, |
| 329 | struct ceph_osd_request *req); | 329 | struct ceph_osd_request *req); |
| 330 | 330 | ||
| 331 | static inline void ceph_osdc_get_request(struct ceph_osd_request *req) | 331 | extern void ceph_osdc_get_request(struct ceph_osd_request *req); |
| 332 | { | 332 | extern void ceph_osdc_put_request(struct ceph_osd_request *req); |
| 333 | kref_get(&req->r_kref); | ||
| 334 | } | ||
| 335 | extern void ceph_osdc_release_request(struct kref *kref); | ||
| 336 | static inline void ceph_osdc_put_request(struct ceph_osd_request *req) | ||
| 337 | { | ||
| 338 | kref_put(&req->r_kref, ceph_osdc_release_request); | ||
| 339 | } | ||
| 340 | 333 | ||
| 341 | extern int ceph_osdc_start_request(struct ceph_osd_client *osdc, | 334 | extern int ceph_osdc_start_request(struct ceph_osd_client *osdc, |
| 342 | struct ceph_osd_request *req, | 335 | struct ceph_osd_request *req, |
