Commit c1279c4e authored by Glauber Costa's avatar Glauber Costa Committed by Linus Torvalds
Browse files

mm: vmalloc tweak failure printk

If we can't service a vmalloc allocation, show size of the allocation that
actually failed.  Useful for debugging.
Signed-off-by: default avatarGlauber Costa <>
Signed-off-by: default avatarNick Piggin <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 4917e5d0
......@@ -381,8 +381,9 @@ found:
goto retry;
if (printk_ratelimit())
printk(KERN_WARNING "vmap allocation failed: "
"use vmalloc=<size> to increase size.\n");
"vmap allocation for size %lu failed: "
"use vmalloc=<size> to increase size.\n", size);
return ERR_PTR(-EBUSY);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment