powerpc/pseries: Read and write to the 'compressed' flag of pstore
authorAruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Fri, 16 Aug 2013 20:53:49 +0000 (13:53 -0700)
committerTony Luck <tony.luck@intel.com>
Mon, 19 Aug 2013 18:53:34 +0000 (11:53 -0700)
commit40594264bd622e0865a981f14b98d9e09bc50b14
treec53857f703a551200c60a8bb00a137b6cdcb95ae
parent9ad2cbe0a9b88ee6ee895d03b2c63fa1252c8e52
powerpc/pseries: Read and write to the 'compressed' flag of pstore

If data returned from pstore is compressed, nvram's write callback
will add a flag ERR_TYPE_KERNEL_PANIC_GZ indicating the data is compressed
while writing to nvram. If the data read from nvram is compressed, nvram's
read callback will set the flag 'compressed'. The patch adds backward
compatibilty with old format oops header when reading from pstore.

Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/powerpc/platforms/pseries/nvram.c