]> git.baikalelectronics.ru Git - kernel.git/commit
[NET]: Cleanup pernet operation without CONFIG_NET_NS
authorDenis V. Lunev <den@openvz.org>
Tue, 13 Nov 2007 11:23:21 +0000 (03:23 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Nov 2007 11:23:21 +0000 (03:23 -0800)
commit345a1b31a1fabc8a91112201c73fd45554ef7003
treebe810664611452c2af170116e8deff2baa8cb916
parent5f9edc36170372fe5ada75e5865d5358a6c7a596
[NET]: Cleanup pernet operation without CONFIG_NET_NS

If CONFIG_NET_NS is not set, the only namespace is possible.

This patch removes list of pernet_operations and cleanups code a bit.
This list is not needed if there are no namespaces. We should just call
->init method.

Additionally, the ->exit will be called on module unloading only. This
case is safe - the code is not discarded. For the in/kernel code, ->exit
should never be called.

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