]> git.karo-electronics.de Git - karo-tx-linux.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)
commite33660165c901d18e7d3df2290db070d3e4b46df
treefac7e77d6a57d244262e73213976ae11519c3d5a
parentce6a50263d4ddeba1f0d08f16716a82770c03690
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