Commit 25487d73 authored by Xishi Qiu's avatar Xishi Qiu Committed by Linus Torvalds
Browse files

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: default avatarXishi Qiu <>
Suggested-by: default avatarNaoya Horiguchi <>
Acked-by: default avatarMichal Hocko <>
Acked-by: default avatarDavid Rientjes <>
Reviewed-by: default avatarWanpeng Li <>
Acked-by: default avatarKOSAKI Motohiro <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 4883e997
......@@ -43,4 +43,7 @@ void show_mem(unsigned int filter)
printk("%lu pages in pagetable cache\n",
printk("%lu pages hwpoisoned\n", atomic_long_read(&num_poisoned_pages));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment