From: KOSAKI Motohiro Date: Thu, 8 Dec 2011 04:41:48 +0000 (+1100) Subject: vmscan: add task name to warn_scan_unevictable() messages X-Git-Tag: next-20111212~1^2~147 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7200ddeb6eee5a5d04f5a67713fa0a3c304b53ac;p=karo-tx-linux.git vmscan: add task name to warn_scan_unevictable() messages If we need to know a usecase, caller program name is critical important. Show it. Signed-off-by: KOSAKI Motohiro Acked-by: Johannes Weiner David Rientjes Reviewed-by: Minchan Kim Reviewed-by: KAMEZAWA Hiroyuki Signed-off-by: Andrew Morton --- diff --git a/mm/vmscan.c b/mm/vmscan.c index 341ac3eb0361..7a9bc025f019 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -3436,9 +3436,10 @@ void scan_mapping_unevictable_pages(struct address_space *mapping) static void warn_scan_unevictable_pages(void) { printk_once(KERN_WARNING - "The scan_unevictable_pages sysctl/node-interface has been " + "%s: The scan_unevictable_pages sysctl/node-interface has been " "disabled for lack of a legitimate use case. If you have " - "one, please send an email to linux-mm@kvack.org.\n"); + "one, please send an email to linux-mm@kvack.org.\n", + current->comm); } /*