summaryrefslogtreecommitdiff
path: root/crypto/scatterwalk.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2009-06-16 22:32:37 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2009-06-17 02:47:40 (GMT)
commitdab48dab37d2770824420d1e01730a107fade1aa (patch)
tree81e949d2521d4d8d979808feaa9c2a570337a98c /crypto/scatterwalk.c
parent720b17e759a50635c429ccaa2ec3d01edb4f92d6 (diff)
downloadlinux-dab48dab37d2770824420d1e01730a107fade1aa.tar.xz
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 'crypto/scatterwalk.c')
0 files changed, 0 insertions, 0 deletions