From: Kris Van Hees Date: Tue, 31 Jan 2012 10:04:53 +0000 (-0500) Subject: Make all allocations that are allowed to fail atomic, and surpress warnings X-Git-Tag: v4.1.12-111.0.20170907_2225~3^2~3^2~196 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=92efb6e82c11e8f241b272aab152f21bbd83d125;p=users%2Fjedix%2Flinux-maple.git Make all allocations that are allowed to fail atomic, and surpress warnings about out-of-memory conditions, since they are not harmful. Also, do not allow DTrace allocations to access the emergency pools. Signed-off-by: Kris Van Hees --- diff --git a/dtrace/dtrace_util.c b/dtrace/dtrace_util.c index a4f086c359f46..beb222d44d88e 100644 --- a/dtrace/dtrace_util.c +++ b/dtrace/dtrace_util.c @@ -47,8 +47,8 @@ int dtrace_badattr(const dtrace_attribute_t *a) void *dtrace_vzalloc_try(unsigned long size) { return __vmalloc(size, - __GFP_WAIT | __GFP_IO | __GFP_FS | __GFP_NORETRY | - __GFP_ZERO, + GFP_NOWAIT | __GFP_FS | __GFP_IO | __GFP_NOMEMALLOC | + __GFP_NORETRY | __GFP_NOWARN | __GFP_ZERO, PAGE_KERNEL); }