aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorXishi Qiu <qiuxishi@huawei.com>2014-01-21 18:50:57 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2014-01-21 19:19:48 -0500
commit25487d73a9670d911530eee2e31c20889ba117db (patch)
tree2d9c814c47e2f72b342a5063699f26a881f02eaf /lib
parent4883e997b26ed857da8dae6a6e6aeb12830b978d (diff)
lib/show_mem.c: show num_poisoned_pages when oom
Show num_poisoned_pages when oom, it is a little helpful to find the reason. Also it will be emitted anytime show_mem() is called. Signed-off-by: Xishi Qiu <qiuxishi@huawei.com> Suggested-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> Acked-by: Michal Hocko <mhocko@suse.cz> Acked-by: David Rientjes <rientjes@google.com> Reviewed-by: Wanpeng Li <liwanp@linux.vnet.ibm.com> Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/show_mem.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/show_mem.c b/lib/show_mem.c
index f58689f5a24e..09225796991a 100644
--- a/lib/show_mem.c
+++ b/lib/show_mem.c
@@ -43,4 +43,7 @@ void show_mem(unsigned int filter)
43 printk("%lu pages in pagetable cache\n", 43 printk("%lu pages in pagetable cache\n",
44 quicklist_total_size()); 44 quicklist_total_size());
45#endif 45#endif
46#ifdef CONFIG_MEMORY_FAILURE
47 printk("%lu pages hwpoisoned\n", atomic_long_read(&num_poisoned_pages));
48#endif
46} 49}