aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/kexec.c
diff options
context:
space:
mode:
authorMitsuhiro Tanino <mitsuhiro.tanino.gm@hitachi.com>2013-02-27 20:03:27 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2013-02-27 22:10:12 -0500
commit0d0bf6674136eb861b37213160b16388cfc1926d (patch)
treef2e7183c8cc43f055f119cc0f5543b87ddb43606 /kernel/kexec.c
parent8a525f5e7a9f1e15e93c63fe179a5a4463dde4e1 (diff)
kexec: export PG_hwpoison flag into vmcoreinfo
This patch exports a PG_hwpoison into vmcoreinfo when CONFIG_MEMORY_FAILURE is defined. "makedumpfile" needs to read information of memory, such as 'mem_section', 'zone', 'pageflags' from vmcore. We introduce a function into "makedumpfile" to exclude hwpoison page from vmcore dump. In order to introduce this function, PG_hwpoison flag have to export into vmcoreinfo. Signed-off-by: Mitsuhiro Tanino <mitsuhiro.tanino.gm@hitachi.com> Acked-by: "Eric W. Biederman" <ebiederm@xmission.com> Cc: Mitsuhiro Tanino <mitsuhiro.tanino.gm@hitachi.com> Cc: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/kexec.c')
-rw-r--r--kernel/kexec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/kexec.c b/kernel/kexec.c
index ea097ad7cc37..2348bd6ef2af 100644
--- a/kernel/kexec.c
+++ b/kernel/kexec.c
@@ -1537,6 +1537,9 @@ static int __init crash_save_vmcoreinfo_init(void)
1537 VMCOREINFO_NUMBER(PG_private); 1537 VMCOREINFO_NUMBER(PG_private);
1538 VMCOREINFO_NUMBER(PG_swapcache); 1538 VMCOREINFO_NUMBER(PG_swapcache);
1539 VMCOREINFO_NUMBER(PG_slab); 1539 VMCOREINFO_NUMBER(PG_slab);
1540#ifdef CONFIG_MEMORY_FAILURE
1541 VMCOREINFO_NUMBER(PG_hwpoison);
1542#endif
1540 VMCOREINFO_NUMBER(PAGE_BUDDY_MAPCOUNT_VALUE); 1543 VMCOREINFO_NUMBER(PAGE_BUDDY_MAPCOUNT_VALUE);
1541 1544
1542 arch_crash_save_vmcoreinfo(); 1545 arch_crash_save_vmcoreinfo();