From: Pavel Emelyanov <xemul@openvz.org>
Date: Mon, 31 Mar 2008 16:15:47 +0400
> Such an accounting would cost us two more dereferences to get the
> percpu variable from the struct net, so I make sock_prot_inuse_get
> and _add calls work differently depending on CONFIG_NET_NS - without
> it old optimized routines are used.
>
> The per-cpu counter for init_net is prepared in core_initcall, so
> that even af_inet, that starts as fs_initcall, will already have the
> init_net prepared.
>
> Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Applied.