aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/msgpool.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2010-03-17 08:53:04 -0700
committerSage Weil <sage@newdream.net>2010-05-17 15:25:12 -0700
commitf553069e5d7c6f53688ae4470173fcb1be97cbe7 (patch)
tree3abf4bb73c5792a2f5ee38afe0d3aa2c8e243cea /fs/ceph/msgpool.c
parent21b667f69b023979410188d7d94c9b219f216626 (diff)
downloadkernel_samsung_crespo-f553069e5d7c6f53688ae4470173fcb1be97cbe7.zip
kernel_samsung_crespo-f553069e5d7c6f53688ae4470173fcb1be97cbe7.tar.gz
kernel_samsung_crespo-f553069e5d7c6f53688ae4470173fcb1be97cbe7.tar.bz2
ceph: update for removal of kref_set
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/msgpool.c')
-rw-r--r--fs/ceph/msgpool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/msgpool.c b/fs/ceph/msgpool.c
index ca3b44a..030297f 100644
--- a/fs/ceph/msgpool.c
+++ b/fs/ceph/msgpool.c
@@ -170,7 +170,7 @@ void ceph_msgpool_put(struct ceph_msgpool *pool, struct ceph_msg *msg)
msg->front.iov_len = pool->front_len;
msg->hdr.front_len = cpu_to_le32(pool->front_len);
- kref_set(&msg->kref, 1); /* retake a single ref */
+ kref_init(&msg->kref); /* retake a single ref */
list_add(&msg->list_head, &pool->msgs);
pool->num++;
dout("msgpool_put %p reclaim %p, now %d/%d\n", pool, msg,