]> git.baikalelectronics.ru Git - kernel.git/commit
pstore: add lzo/lz4 compression support
authorGeliang Tang <geliangtang@163.com>
Thu, 18 Feb 2016 14:04:22 +0000 (22:04 +0800)
committerKees Cook <keescook@chromium.org>
Thu, 2 Jun 2016 17:59:31 +0000 (10:59 -0700)
commit068290a06515e1db24087e4a7c9695110db9bd99
treefd5bb1b71a1c8418b672ccfa039babf84251b95a
parent716460986a8997dd56488776e76ef1db6f8dedc2
pstore: add lzo/lz4 compression support

Like zlib compression in pstore, this patch added lzo and lz4
compression support so that users can have more options and better
compression ratio.

The original code treats the compressed data together with the
uncompressed ECC correction notice by using zlib decompress. The
ECC correction notice is missing in the decompression process. The
treatment also makes lzo and lz4 not working. So I treat them
separately by using pstore_decompress() to treat the compressed
data, and memcpy() to treat the uncompressed ECC correction notice.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
arch/powerpc/kernel/nvram_64.c
drivers/acpi/apei/erst.c
drivers/firmware/efi/efi-pstore.c
fs/pstore/Kconfig
fs/pstore/platform.c
fs/pstore/ram.c
include/linux/pstore.h