From: Herbert Xu Date: Wed, 22 Feb 2006 22:47:13 +0000 (-0800) Subject: [XFRM]: Eliminate refcounting confusion by creating __xfrm_state_put(). X-Git-Tag: v2.6.16-rc5~54^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21380b81ef8699179b535e197a95b891a7badac7;p=pandora-kernel.git [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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed