mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 14:43:16 +00:00
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: Glauber Costa <glommer@redhat.com> Signed-off-by: Nick Piggin <npiggin@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
4917e5d049
commit
c1279c4ef3
@ -381,8 +381,9 @@ found:
|
||||
goto retry;
|
||||
}
|
||||
if (printk_ratelimit())
|
||||
printk(KERN_WARNING "vmap allocation failed: "
|
||||
"use vmalloc=<size> to increase size.\n");
|
||||
printk(KERN_WARNING
|
||||
"vmap allocation for size %lu failed: "
|
||||
"use vmalloc=<size> to increase size.\n", size);
|
||||
return ERR_PTR(-EBUSY);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user