public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] pstore: Use zstd directly by default for compression
@ 2022-10-18  2:08 Kees Cook
  2022-10-18  2:08 ` [PATCH 1/5] pstore: Remove worse-case compression size logic Kees Cook
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Kees Cook @ 2022-10-18  2:08 UTC (permalink / raw)
  To: Ard Biesheuvel
  Cc: Kees Cook, Tony Luck, Guilherme G. Piccoli, Nick Terrell,
	linux-kernel, linux-hardening

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-10-18 14:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-18  2:08 [PATCH 0/5] pstore: Use zstd directly by default for compression Kees Cook
2022-10-18  2:08 ` [PATCH 1/5] pstore: Remove worse-case compression size logic Kees Cook
2022-10-18  2:08 ` [PATCH 2/5] pstore: Allow for arbitrary compression algorithm Kees Cook
2022-10-18  2:08 ` [PATCH 3/5] pstore: Use size_t for compress/decompression type widths Kees Cook
2022-10-18  2:08 ` [PATCH 4/5] pstore: Refactor compression initialization Kees Cook
2022-10-18  2:08 ` [PATCH 5/5] pstore: Use zstd directly by default for compression Kees Cook
2022-10-18  8:20 ` [PATCH 0/5] " Ard Biesheuvel
2022-10-18 14:10   ` Guilherme G. Piccoli
2022-10-18 14:38     ` Ard Biesheuvel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox