]> git.baikalelectronics.ru Git - kernel.git/commit
slab: Use common kmalloc_index/kmalloc_size functions
authorChristoph Lameter <cl@linux.com>
Thu, 10 Jan 2013 19:14:18 +0000 (19:14 +0000)
committerPekka Enberg <penberg@kernel.org>
Fri, 1 Feb 2013 10:32:06 +0000 (12:32 +0200)
commit2b7d3d3479b98cb72ec4314c5f1632832444732d
treefac7e77d6a57d244262e73213976ae11519c3d5a
parent6641f46ecc449f791d2afab26175462533a78bcf
slab: Use common kmalloc_index/kmalloc_size functions

Make slab use the common functions. We can get rid of a lot
of old ugly stuff as a results. Among them the sizes
array and the weird include/linux/kmalloc_sizes file and
some pretty bad #include statements in slab_def.h.

The one thing that is different in slab is that the 32 byte
cache will also be created for arches that have page sizes
larger than 4K. There are numerous smaller allocations that
SLOB and SLUB can handle better because of their support for
smaller allocation sizes so lets keep the 32 byte slab also
for arches with > 4K pages.

Reviewed-by: Glauber Costa <glommer@parallels.com>
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
include/linux/kmalloc_sizes.h [deleted file]
include/linux/slab_def.h
mm/slab.c