[NET]: Cleanup the allocation/freeing of the sock object
authorPavel Emelyanov <xemul@openvz.org>
Thu, 1 Nov 2007 07:33:50 +0000 (00:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Nov 2007 07:33:50 +0000 (00:33 -0700)
commitc308c1b20e2eb7b13f200a7c18b3f23561318367
tree1e0c1012b6b72d9fb9689f43e50ab8441b9ed4f3
parent1e2e6b89f1d3152da0606d23e65e8760bf62a4c3
[NET]: Cleanup the allocation/freeing of the sock object

The sock object is allocated either from the generic cache with
the kmalloc, or from the proc->slab cache.

Move this logic into an isolated set of helpers and make the
sk_alloc/sk_free look a bit nicer.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c