Sai noticed pstore wasn't catching early crashes, so Joel fixed it by moving init earlier again (with compression init done later). I refactored things a bit to avoid modular build problems noticed by Guenter. And while doing this work, I also improved /proc/iomem labels after Dan helped me get NVDIMM working so I could meaningfully test the very early crash handling.
Thanks everyone! -Kees v2: - add init refactoring to avoid modular build failures. Joel Fernandes (Google) (1): pstore: Allocate compression during late_initcall() Kees Cook (3): pstore: Centralize init/exit routines pstore: Refactor compression initialization pstore/ram: Clarify resource reservation labels fs/pstore/inode.c | 11 +----- fs/pstore/internal.h | 5 ++- fs/pstore/platform.c | 75 +++++++++++++++++++++++++++++++------- fs/pstore/ram.c | 18 +++++++-- fs/pstore/ram_core.c | 11 ++++-- include/linux/pstore_ram.h | 3 +- 6 files changed, 90 insertions(+), 33 deletions(-) -- 2.17.1