Home
last modified time | relevance | path

Searched hist:ed160e839d2e1118529e58b04d52dba703ca629c (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/core/
H A Dnet_namespace.cdiff ed160e839d2e1118529e58b04d52dba703ca629c Tue Nov 13 05:23:21 CST 2007 Denis V. Lunev <den@openvz.org> [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>