diff options
| author | Andrew Morton <[email protected]> | 2009-06-16 15:32:37 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2009-06-16 19:47:40 -0700 |
| commit | dab48dab37d2770824420d1e01730a107fade1aa (patch) | |
| tree | 81e949d2521d4d8d979808feaa9c2a570337a98c /tools/perf/scripts/python | |
| parent | 720b17e759a50635c429ccaa2ec3d01edb4f92d6 (diff) | |
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 <[email protected]>
Acked-by: Mel Gorman <[email protected]>
Acked-by: Peter Zijlstra <[email protected]>
Cc: KOSAKI Motohiro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions