UPSTREAM: USB: option: blacklist net interface on ZTE devices
[cascardo/linux.git] / mm / page_alloc.c
index ed85c02..4ac1aa1 100644 (file)
@@ -59,6 +59,7 @@
 #include <linux/prefetch.h>
 #include <linux/migrate.h>
 #include <linux/page-debug-flags.h>
+#include <linux/low-mem-notify.h>
 
 #include <asm/tlbflush.h>
 #include <asm/div64.h>
@@ -2507,6 +2508,11 @@ retry_cpuset:
        if (!preferred_zone)
                goto out;
 
+#ifdef CONFIG_LOW_MEM_NOTIFY
+       if (is_low_mem_situation())
+               low_mem_notify();
+#endif
+
        /* First allocation attempt */
        page = get_page_from_freelist(gfp_mask|__GFP_HARDWALL, nodemask, order,
                        zonelist, high_zoneidx, ALLOC_WMARK_LOW|ALLOC_CPUSET,