diff options
author | Christoph Lameter <cl@linux.com> | 2013-01-10 19:14:19 +0000 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2013-02-01 12:32:05 +0200 |
commit | ce6a50263d4ddeba1f0d08f16716a82770c03690 (patch) | |
tree | 099024fa474177d2e26709de76a211050ee9a4a1 /mm | |
parent | 345046673449b5c35840e5cc34a60059cbec9305 (diff) |
slab: Common kmalloc slab index determination
Extract the function to determine the index of the slab within
the array of kmalloc caches as well as a function to determine
maximum object size from the nr of the kmalloc slab.
This is used here only to simplify slub bootstrap but will
be used later also for SLAB.
Acked-by: Glauber Costa <glommer@parallels.com>
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions