slub: return object pointer from get_partial() / new_slab().
authorChristoph Lameter <cl@linux.com>
Tue, 9 Aug 2011 21:12:26 +0000 (16:12 -0500)
committerPekka Enberg <penberg@kernel.org>
Fri, 19 Aug 2011 16:34:27 +0000 (19:34 +0300)
There is no need anymore to return the pointer to a slab page from get_partial()
since the page reference can be stored in the kmem_cache_cpu structures "page" field.

Return an object pointer instead.

That in turn allows a simplification of the spaghetti code in __slab_alloc().

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

diff --cc mm/slub.c
Simple merge