slab: Common function to create the kmalloc array
authorChristoph Lameter <cl@linux.com>
Thu, 10 Jan 2013 19:12:17 +0000 (19:12 +0000)
committerPekka Enberg <penberg@kernel.org>
Fri, 1 Feb 2013 10:32:08 +0000 (12:32 +0200)
commitf97d5f634d3b5133951424fae751db1f339548bd
treecb4db9a78c8eb1bd0522679d90f553d40d15f3e9
parent9425c58e5445277699ff3c2a87bac1cfebc1b48d
slab: Common function to create the kmalloc array

The kmalloc array is created in similar ways in both SLAB
and SLUB. Create a common function and have both allocators
call that function.

V1->V2:
Whitespace cleanup

Reviewed-by: Glauber Costa <glommer@parallels.com>
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
mm/slab.c
mm/slab.h
mm/slab_common.c
mm/slub.c