Don't warn about order-1 allocations with __GFP_NOFAIL
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 24 Jun 2009 19:16:49 +0000 (12:16 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 24 Jun 2009 19:16:49 +0000 (12:16 -0700)
commit4923abf9f1a4c1864af438a57c1f3686548230e9
treecbe9762f552478ce0c2a68728b45d0c604822882
parentc82e6d450fda56cb2d4f68534173d3cd11b32f9f
Don't warn about order-1 allocations with __GFP_NOFAIL

Traditionally, we never failed small orders (even regardless of any
__GFP_NOFAIL flags), and slab will allocate order-1 allocations even for
small allocations that could fit in a single page (in order to avoid
excessive fragmentation).

Maybe we should remove this warning entirely, but before making that
judgement, at least limit it to bigger allocations.

Acked-by: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c