diff options
author | Ilya Dryomov <ilya.dryomov@inktank.com> | 2014-06-20 06:14:41 -0400 |
---|---|---|
committer | Ilya Dryomov <ilya.dryomov@inktank.com> | 2014-07-08 07:08:43 -0400 |
commit | 0215e44bb390a968d01404aa2f35af56f9b55fc8 (patch) | |
tree | 2c9004d85bd441215659841838cc992043e7878c /include/linux/ceph | |
parent | bbf37ec3a668a983f88b069ec2b7a1781c428eb5 (diff) |
libceph: move and add dout()s to ceph_msg_{get,put}()
Add dout()s to ceph_msg_{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/messenger.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/include/linux/ceph/messenger.h b/include/linux/ceph/messenger.h index d21f2dba0731..40ae58e3e9db 100644 --- a/include/linux/ceph/messenger.h +++ b/include/linux/ceph/messenger.h | |||
@@ -285,19 +285,9 @@ extern void ceph_msg_data_add_bio(struct ceph_msg *msg, struct bio *bio, | |||
285 | 285 | ||
286 | extern struct ceph_msg *ceph_msg_new(int type, int front_len, gfp_t flags, | 286 | extern struct ceph_msg *ceph_msg_new(int type, int front_len, gfp_t flags, |
287 | bool can_fail); | 287 | bool can_fail); |
288 | extern void ceph_msg_kfree(struct ceph_msg *m); | ||
289 | 288 | ||
290 | 289 | extern struct ceph_msg *ceph_msg_get(struct ceph_msg *msg); | |
291 | static inline struct ceph_msg *ceph_msg_get(struct ceph_msg *msg) | 290 | extern void ceph_msg_put(struct ceph_msg *msg); |
292 | { | ||
293 | kref_get(&msg->kref); | ||
294 | return msg; | ||
295 | } | ||
296 | extern void ceph_msg_last_put(struct kref *kref); | ||
297 | static inline void ceph_msg_put(struct ceph_msg *msg) | ||
298 | { | ||
299 | kref_put(&msg->kref, ceph_msg_last_put); | ||
300 | } | ||
301 | 291 | ||
302 | extern void ceph_msg_dump(struct ceph_msg *msg); | 292 | extern void ceph_msg_dump(struct ceph_msg *msg); |
303 | 293 | ||