mm/sl[aou]b: Move list_add() to slab_common.c
authorChristoph Lameter <cl@linux.com>
Tue, 4 Sep 2012 23:38:33 +0000 (23:38 +0000)
committerPekka Enberg <penberg@kernel.org>
Wed, 5 Sep 2012 09:00:35 +0000 (12:00 +0300)
commit7c9adf5a5471647f392169ef19d3e81dcfa76045
tree4e32d1875e45eafd4c4c9f2caedcf3419479c0b8
parent686d550d222e8f83f6e709debbedf9d8ef77aec7
mm/sl[aou]b: Move list_add() to slab_common.c

Move the code to append the new kmem_cache to the list of slab caches to
the kmem_cache_create code in the shared code.

This is possible now since the acquisition of the mutex was moved into
kmem_cache_create().

Acked-by: David Rientjes <rientjes@google.com>
Reviewed-by: Glauber Costa <glommer@parallels.com>
Reviewed-by: Joonsoo Kim <js1304@gmail.com>
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
mm/slab.c
mm/slab_common.c
mm/slob.c
mm/slub.c