]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kexec: export PG_hwpoison flag into vmcoreinfo
authorMitsuhiro Tanino <mitsuhiro.tanino.gm@hitachi.com>
Wed, 20 Feb 2013 02:16:02 +0000 (13:16 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:53:38 +0000 (16:53 +1100)
commite66fb7ba1bf9119e9fef53d2cf29cc1bd38ea138
treed0d882254b98cf416c4240e768d56d14fbaccb51
parent42ee4fe579586705961d8fabba95b8a856f6a357
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>
kernel/kexec.c