[NETNS]: Make netns refconting debug like a socket one.
authorDenis V. Lunev <den@openvz.org>
Wed, 16 Apr 2008 08:58:04 +0000 (01:58 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Apr 2008 08:58:04 +0000 (01:58 -0700)
commit5d1e4468a7705db7c1415a65fd16f07113afc1b2
tree41d34aa3f0e3b8cc0453973d8ce9e03303264080
parent554eb27782d4bb79e0a286a08ecafb81f758058c
[NETNS]: Make netns refconting debug like a socket one.

Make release_net/hold_net noop for performance-hungry people. This is a debug
staff and should be used in the debug mode only.

Add check for net != NULL in hold/release calls. This will be required
later on.

[ Added minor simplifications suggested by Brian Haley. -DaveM ]

Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/net_namespace.h
net/core/net_namespace.c