From: David Rientjes Date: Tue, 31 Mar 2009 22:23:29 +0000 (-0700) Subject: vmscan: print shrink_slab symbol name on negative shrinker objects X-Git-Tag: v2.6.30-rc1~555 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=88c3bd707c2552bcef93cc3724647903aece159d;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git vmscan: print shrink_slab symbol name on negative shrinker objects When a shrinker has a negative number of objects to delete, the symbol name of the shrinker should be printed, not shrink_slab. This also makes the error message slightly more informative. Cc: Ingo Molnar Signed-off-by: David Rientjes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/vmscan.c b/mm/vmscan.c index e70fae3..f4619c6 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -214,8 +214,9 @@ unsigned long shrink_slab(unsigned long scanned, gfp_t gfp_mask, do_div(delta, lru_pages + 1); shrinker->nr += delta; if (shrinker->nr < 0) { - printk(KERN_ERR "%s: nr=%ld\n", - __func__, shrinker->nr); + printk(KERN_ERR "shrink_slab: %pF negative objects to " + "delete nr=%ld\n", + shrinker->shrink, shrinker->nr); shrinker->nr = max_pass; }