[PATCH] slab: allocate larger cache_cache if order 0 fails
authorJack Steiner <steiner@sgi.com>
Wed, 8 Mar 2006 05:55:46 +0000 (21:55 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 8 Mar 2006 22:15:04 +0000 (14:15 -0800)
commit07ed76b2a085a31f427c2a912a562627947dc7de
treeda15ed460ffa5e43eb644ca0958925275b4b526b
parent731805b49489055c1548f7ccfbd44c9b84013264
[PATCH] slab: allocate larger cache_cache if order 0 fails

kmem_cache_init() incorrectly assumes that the cache_cache object will fit
in an order 0 allocation.  On very large systems, this is not true.  Change
the code to try larger order allocations if order 0 fails.

Signed-off-by: Jack Steiner <steiner@sgi.com>
Cc: Manfred Spraul <manfred@colorfullife.com>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/slab.c