[PATCH 0/5] pstore: Use zstd directly by default for compression

From: Kees Cook
Date: Mon Oct 17 2022 - 22:09:44 EST


Hi,

Okay, here is a very lightly tested version of using zstd directly, which
should save 128KB per CPU compare to using crypto API. This leaves the
crypto API available, though, if someone wants to use it instead. Even
supporting both, this is a net reduction in code, due to dropping all
the zbufsize logic.

How does this look?

-Kees

Kees Cook (5):
pstore: Remove worse-case compression size logic
pstore: Allow for arbitrary compression algorithm
pstore: Use size_t for compress/decompression type widths
pstore: Refactor compression initialization
pstore: Use zstd directly by default for compression

fs/pstore/Kconfig | 131 +++++-----------
fs/pstore/platform.c | 358 ++++++++++++++++++++-----------------------
2 files changed, 209 insertions(+), 280 deletions(-)

--
2.34.1