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 <glommer@redhat.com>
Signed-off-by: default avatarNick Piggin <npiggin@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 4917e5d0
...@@ -381,8 +381,9 @@ found: ...@@ -381,8 +381,9 @@ found:
goto retry; goto retry;
} }
if (printk_ratelimit()) if (printk_ratelimit())
printk(KERN_WARNING "vmap allocation failed: " printk(KERN_WARNING
"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); 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