OSDN Git Service

pstore: Refactor compression initialization
authorKees Cook <keescook@chromium.org>
Wed, 17 Oct 2018 21:00:12 +0000 (14:00 -0700)
committerKees Cook <keescook@chromium.org>
Mon, 22 Oct 2018 14:11:58 +0000 (07:11 -0700)
commit95047b0519c17a28e09df5f38750f5354e3db4c4
treec8399fe5e6cce07c706b28516a750b820ffc71ca
parent416031653eb55f844e3547fb8f8576399a800da0
pstore: Refactor compression initialization

This refactors compression initialization slightly to better handle
getting potentially called twice (via early pstore_register() calls
and later pstore_init()) and improves the comments and reporting to be
more verbose.

Signed-off-by: Kees Cook <keescook@chromium.org>
Tested-by: Guenter Roeck <groeck@chromium.org>
fs/pstore/platform.c