]> err.no Git - linux-2.6/commit
[XFRM]: Eliminate refcounting confusion by creating __xfrm_state_put().
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 22 Feb 2006 22:47:13 +0000 (14:47 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 24 Feb 2006 00:10:53 +0000 (16:10 -0800)
commit21380b81ef8699179b535e197a95b891a7badac7
tree1a6be9864cabbed59db6357b2f0244413acac4c4
parent85259878499d6c428cba191bb4e415a250dcd75a
[XFRM]: Eliminate refcounting confusion by creating __xfrm_state_put().

We often just do an atomic_dec(&x->refcnt) on an xfrm_state object
because we know there is more than 1 reference remaining and thus
we can elide the heavier xfrm_state_put() call.

Do this behind an inline function called __xfrm_state_put() so that is
more obvious and also to allow us to more cleanly add refcount
debugging later.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/xfrm.h
net/key/af_key.c
net/xfrm/xfrm_state.c
net/xfrm/xfrm_user.c