pstore: Split pstore fragile flags
authorNamhyung Kim <namhyung@kernel.org>
Wed, 27 Jul 2016 15:08:25 +0000 (00:08 +0900)
committerKees Cook <keescook@chromium.org>
Thu, 8 Sep 2016 22:01:08 +0000 (15:01 -0700)
commitc950fd6f201aea649932898206a850f0a7f25603
tree37fcfa59b06f9f398a156b7a556c6f61e94285ed
parentd5a9bf0b38d2ac85c9a693c7fb851f74fd2a2494
pstore: Split pstore fragile flags

This patch adds new PSTORE_FLAGS for each pstore type so that they can
be enabled separately.  This is a preparation for ongoing virtio-pstore
work to support those types flexibly.

The PSTORE_FLAGS_FRAGILE is changed to PSTORE_FLAGS_DMESG to preserve the
original behavior.

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>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Len Brown <lenb@kernel.org>
Cc: Matt Fleming <matt@codeblueprint.co.uk>
Cc: linux-acpi@vger.kernel.org
Cc: linux-efi@vger.kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
[kees: retained "FRAGILE" for now to make merges easier]
Signed-off-by: Kees Cook <keescook@chromium.org>
drivers/acpi/apei/erst.c
drivers/firmware/efi/efi-pstore.c
fs/pstore/platform.c
fs/pstore/ram.c
include/linux/pstore.h