mm, page_alloc: distinguish between being unable to sleep, unwilling to sleep and...
[firefly-linux-kernel-4.4.55.git] / mm / vmalloc.c
index 9db9ef5e8481a15e3bf99bf34276a0588fb2e674..7ee94dc1000031004c15524e00df351aeeac7a59 100644 (file)
@@ -1617,7 +1617,7 @@ static void *__vmalloc_area_node(struct vm_struct *area, gfp_t gfp_mask,
                        goto fail;
                }
                area->pages[i] = page;
-               if (gfp_mask & __GFP_WAIT)
+               if (gfpflags_allow_blocking(gfp_mask))
                        cond_resched();
        }