Commit b3acc56b authored by Petr Tesarik's avatar Petr Tesarik Committed by Linus Torvalds
Browse files

kexec: save PG_head_mask in VMCOREINFO

To allow filtering of huge pages, makedumpfile must be able to identify
them in the dump.  This can be done by checking the appropriate page
flag, so communicate its value to makedumpfile through the VMCOREINFO

There's only one small catch.  Depending on how many page flags are
available on a given architecture, this bit can be called PG_head or

I sent a similar patch back in 2012, but Eric Biederman did not like
using an #ifdef.  So, this time I'm adding a common symbol
(PG_head_mask) instead.


 for the previous version.

Signed-off-by: default avatarPetr Tesarik <>
Acked-by: default avatarVivek Goyal <>
Cc: Eric Biederman <>
Cc: Paul Mackerras <>
Cc: Fengguang Wu <>
Cc: Benjamin Herrenschmidt <>
Cc: Shaohua Li <>
Cc: Alexey Kardashevskiy <>
Cc: Sasha Levin <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 8d056c48
......@@ -360,6 +360,9 @@ static inline void ClearPageCompound(struct page *page)
#define PG_head_mask ((1L << PG_head))
* Reduce page flag use as much as possible by overlapping
......@@ -1617,6 +1617,7 @@ static int __init crash_save_vmcoreinfo_init(void)
Supports Markdown
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