Merge "mm: Silence vmap() allocation failures based on caller gfp_flags"

This commit is contained in:
Linux Build Service Account 2018-09-18 09:44:48 -07:00 committed by Gerrit - the friendly Code Review server
commit 5b8d95d021

View file

@ -521,7 +521,7 @@ overflow:
purged = 1;
goto retry;
}
if (printk_ratelimit())
if (!(gfp_mask & __GFP_NOWARN) && printk_ratelimit())
pr_warn("vmap allocation for size %lu failed: use vmalloc=<size> to increase size\n",
size);
kfree(va);