diff options
author | Xishi Qiu <[email protected]> | 2014-01-21 15:50:57 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2014-01-21 16:19:48 -0800 |
commit | 25487d73a9670d911530eee2e31c20889ba117db (patch) | |
tree | 2d9c814c47e2f72b342a5063699f26a881f02eaf | |
parent | 4883e997b26ed857da8dae6a6e6aeb12830b978d (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 <[email protected]>
Suggested-by: Naoya Horiguchi <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Acked-by: David Rientjes <[email protected]>
Reviewed-by: Wanpeng Li <[email protected]>
Acked-by: KOSAKI Motohiro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r-- | lib/show_mem.c | 3 |
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) printk("%lu pages in pagetable cache\n", quicklist_total_size()); #endif +#ifdef CONFIG_MEMORY_FAILURE + printk("%lu pages hwpoisoned\n", atomic_long_read(&num_poisoned_pages)); +#endif } |