]> git.baikalelectronics.ru Git - kernel.git/commit
slab: Common constants for kmalloc boundaries
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:07 +0000 (12:32 +0200)
commite4923ca53a11f192a61a2a6a4a13effe9f6ceb99
tree3a74205955201dd5e1abb0a85104d95cafa49df6
parentf727868a519ac658a5616736dafdd48d2c41fc49
slab: Common constants for kmalloc boundaries

Standardize the constants that describe the smallest and largest
object kept in the kmalloc arrays for SLAB and SLUB.

Differentiate between the maximum size for which a slab cache is used
(KMALLOC_MAX_CACHE_SIZE) and the maximum allocatable size
(KMALLOC_MAX_SIZE, KMALLOC_MAX_ORDER).

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