Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 interface. 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 PG_compound. 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. See https://lkml.org/lkml/2012/11/28/91 for the previous version. Signed-off-by: Petr Tesarik <[email protected]> Acked-by: Vivek Goyal <[email protected]> Cc: Eric Biederman <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Fengguang Wu <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: Shaohua Li <[email protected]> Cc: Alexey Kardashevskiy <[email protected]> Cc: Sasha Levin <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information