summaryrefslogtreecommitdiffstats
path: root/mm/madvise.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2009-06-16 15:32:37 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2009-06-16 19:47:40 -0700
commitdab48dab37d2770824420d1e01730a107fade1aa (patch)
tree81e949d2521d4d8d979808feaa9c2a570337a98c /mm/madvise.c
parent720b17e759a50635c429ccaa2ec3d01edb4f92d6 (diff)
downloadblackbird-op-linux-dab48dab37d2770824420d1e01730a107fade1aa.tar.gz
blackbird-op-linux-dab48dab37d2770824420d1e01730a107fade1aa.zip
page-allocator: warn if __GFP_NOFAIL is used for a large allocation
__GFP_NOFAIL is a bad fiction. Allocations _can_ fail, and callers should detect and suitably handle this (and not by lamely moving the infinite loop up to the caller level either). Attempting to use __GFP_NOFAIL for a higher-order allocation is even worse, so add a once-off runtime check for this to slap people around for even thinking about trying it. Cc: David Rientjes <rientjes@google.com> Acked-by: Mel Gorman <mel@csn.ul.ie> Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/madvise.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud