slab: Common Kmalloc cache determination
authorChristoph Lameter <cl@linux.com>
Thu, 10 Jan 2013 19:14:19 +0000 (19:14 +0000)
committerPekka Enberg <penberg@kernel.org>
Fri, 1 Feb 2013 10:32:08 +0000 (12:32 +0200)
commit2c59dd6544212faa5ce761920d2251f4152f408d
treec2547eb50205b72368e0b4758fc7c9a0111238a5
parent9e5e8deca74603357626471a9b44f05dea9e32b1
slab: Common Kmalloc cache determination

Extract the optimized lookup functions from slub and put them into
slab_common.c. Then make slab use these functions as well.

Joonsoo notes that this fixes some issues with constant folding which
also reduces the code size for slub.

https://lkml.org/lkml/2012/10/20/82

Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
include/linux/slub_def.h
mm/slab.c
mm/slab.h
mm/slab_common.c
mm/slub.c