]> 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)
commitd26cf5ab435dd14437c54a3fe972184125664886
treefac7e77d6a57d244262e73213976ae11519c3d5a
parenteb057178d5bedec6bf32ea12c2c39a977cacfc0f
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