]> git.baikalelectronics.ru Git - kernel.git/commit
slab: Use the new create_boot_cache function to simplify bootstrap
authorChristoph Lameter <cl@linux.com>
Wed, 28 Nov 2012 16:23:09 +0000 (16:23 +0000)
committerPekka Enberg <penberg@kernel.org>
Tue, 11 Dec 2012 10:14:27 +0000 (12:14 +0200)
commit497a5c358b617c99a037c723943fb5dc3327d748
tree2f5623db840042f0deffac46c15affa9825bc0b1
parent6403d41707784b4152af11496f5f78a64d6357b6
slab: Use the new create_boot_cache function to simplify bootstrap

Simplify setup and reduce code in kmem_cache_init(). This allows us to
get rid of initarray_cache as well as the manual setup code for
the kmem_cache and kmem_cache_node arrays during bootstrap.

We introduce a new bootstrap state "PARTIAL" for slab that signals the
creation of a kmem_cache boot cache.

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