aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlauber Costa <glommer@redhat.com>2009-01-06 17:39:18 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2009-01-06 18:59:01 -0500
commitc1279c4ef37a06ba708e6b1f6fd98b45c52770f6 (patch)
tree75c54b8d7e2733d3de052eaab7700ff6fe9a9e74
parent4917e5d0499b5ae7b26b56fccaefddf9aec9369c (diff)
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>
-rw-r--r--mm/vmalloc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index 7465f22fec0c..2644afb9d6ab 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -381,8 +381,9 @@ found:
381 goto retry; 381 goto retry;
382 } 382 }
383 if (printk_ratelimit()) 383 if (printk_ratelimit())
384 printk(KERN_WARNING "vmap allocation failed: " 384 printk(KERN_WARNING
385 "use vmalloc=<size> to increase size.\n"); 385 "vmap allocation for size %lu failed: "
386 "use vmalloc=<size> to increase size.\n", size);
386 return ERR_PTR(-EBUSY); 387 return ERR_PTR(-EBUSY);
387 } 388 }
388 389