Pavel Emelyanov 70ee115942 [SOCK][NETNS]: Add the percpu prot_inuse counter in the struct net.
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-03-31 19:42:16 -07:00
..
2008-03-06 12:18:25 +00:00
2008-02-13 14:44:03 +01:00
2008-03-06 08:13:47 -08:00
2008-03-07 08:42:28 -06:00
2008-03-07 16:56:54 -06:00
2008-03-06 17:23:15 +09:00
2008-03-11 17:11:55 +01:00
2008-02-06 10:41:16 -08:00