[Devel] Re: [PATCH 1/2] cleanup pernet operation without CONFIG_NET_NS
David Miller
davem at davemloft.net
Tue Nov 13 03:24:07 PST 2007
From: "Denis V. Lunev" <den at openvz.org>
Date: Wed, 7 Nov 2007 15:00:07 +0300
> 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 at openvz.org>
Applied.
More information about the Devel
mailing list