]> bbs.cooldavid.org Git - net-next-2.6.git/commit - mm/slob.c
[PATCH] MM: SLOB is broken by recent cleanup of slab.h
authorDimitri Gorokhovik <dimitri.gorokhovik@free.fr>
Sat, 30 Dec 2006 00:48:28 +0000 (16:48 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Sat, 30 Dec 2006 18:56:42 +0000 (10:56 -0800)
commitbcb4ddb46a4c66d64d091e7ffa951b2aa1ba537f
tree80ba7ced73f4a329e8cb84dd2b0a192708a033f0
parent131612dfe7923bd0ce5f82d6ed8303a7ef96e574
[PATCH] MM: SLOB is broken by recent cleanup of slab.h

Recent cleanup of slab.h broke SLOB allocator: the routine kmem_cache_init
has now the __init attribute for both slab.c and slob.c.  This routine
cannot be removed after init in the case of slob.c -- it serves as a timer
callback.

Provide a separate timer callback routine, call it once from kmem_cache_init,
keep the __init attribute on the latter.

Signed-off-by: Dimitri Gorokhovik <dimitri.gorokhovik@free.fr>
Cc: Christoph Lameter <clameter@engr.sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/slob.c