Skip to content

Commit

Permalink
ceph: update for removal of kref_set
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Sage Weil <sage@newdream.net>
  • Loading branch information
Stephen Rothwell authored and Sage Weil committed May 17, 2010
1 parent 21b667f commit f553069
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ceph/msgpool.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f553069

Please sign in to comment.