]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
Make all allocations that are allowed to fail atomic, and surpress warnings
authorKris Van Hees <kris.van.hees@oracle.com>
Tue, 31 Jan 2012 10:04:53 +0000 (05:04 -0500)
committerKris Van Hees <kris.van.hees@oracle.com>
Tue, 31 Jan 2012 10:04:53 +0000 (05:04 -0500)
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 <kris.van.hees@oracle.com>
dtrace/dtrace_util.c

index a4f086c359f466d2c299582d776c1067f11f42da..beb222d44d88e42fcd07af9e623b8ccaadeb62e8 100644 (file)
@@ -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);
 }