slub: Use statically allocated kmem_cache boot structure for bootstrap
authorChristoph Lameter <cl@linux.com>
Wed, 28 Nov 2012 16:23:07 +0000 (16:23 +0000)
committerPekka Enberg <penberg@kernel.org>
Tue, 11 Dec 2012 10:14:27 +0000 (12:14 +0200)
commitdffb4d605c23110e3ad54b8c9f244a8235c013c2
treeba69e37ef8c5c69ea4ae68b2f3679ab77697613a
parent45530c4474d258b822e2639c786606d8257aad8b
slub: Use statically allocated kmem_cache boot structure for bootstrap

Simplify bootstrap by statically allocated two kmem_cache structures. These are
freed after bootup is complete. Allows us to no longer worry about calculations
of sizes of kmem_cache structures during bootstrap.

Reviewed-by: Glauber Costa <glommer@parallels.com>
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
mm/slub.c