[PATCH] fix BUG_ON(!PageSlab) from fallback_alloc
authorHugh Dickins <[email protected]>
Sat, 6 Jan 2007 00:36:36 +0000 (16:36 -0800)
committerLinus Torvalds <[email protected]>
Sat, 6 Jan 2007 07:55:23 +0000 (23:55 -0800)
commitb6a60451813bad6a9f57cb159004c3b3e12a1cd3
tree643ae50ba5a1745950eac093e86072473a3d10ca
parentbe6aab0e9fa6d3c6d75aa1e38ac972d8b4ee82b8
[PATCH] fix BUG_ON(!PageSlab) from fallback_alloc

pdflush hit the BUG_ON(!PageSlab(page)) in kmem_freepages called from
fallback_alloc: cache_grow already freed those pages when alloc_slabmgmt
failed.  But it wouldn't have freed them if __GFP_NO_GROW, so make sure
fallback_alloc doesn't waste its time on that case.

Signed-off-by: Hugh Dickins <[email protected]>
Acked-by: Christoph Lameter <[email protected]>
Acked-by: Pekka J Enberg <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/slab.c