pstore/ram: Set pstore flags dynamically
authorNamhyung Kim <namhyung@kernel.org>
Wed, 27 Jul 2016 15:08:26 +0000 (00:08 +0900)
committerKees Cook <keescook@chromium.org>
Thu, 8 Sep 2016 22:01:09 +0000 (15:01 -0700)
commit79d955af711a6e20207783590a2cfddbd649568b
treefa5c5b48bc906472a5049437337372f0164b080d
parentc950fd6f201aea649932898206a850f0a7f25603
pstore/ram: Set pstore flags dynamically

The ramoops can be configured to enable each pstore type by setting
their size.  In that case, it'd be better not to register disabled types
in the first place.

Cc: Anton Vorontsov <anton@enomsg.org>
Cc: Colin Cross <ccross@android.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Tony Luck <tony.luck@intel.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
fs/pstore/ram.c
include/linux/pstore.h