Re: [PATCH 3/8] Cleanup the allocation/freeing of the sock object

2007-10-31 Thread David Miller
From: Pavel Emelyanov <[EMAIL PROTECTED]> Date: Wed, 31 Oct 2007 16:47:00 +0300 > 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. > >

[PATCH 3/8] Cleanup the allocation/freeing of the sock object

2007-10-31 Thread Pavel Emelyanov
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 <[EMAIL PROTECTED]> --- diff --git a/net/core/sock.c b/net/co