pstore: pass reason to backend write callback
authorKees Cook <keescook@chromium.org>
Thu, 17 Nov 2011 21:13:29 +0000 (13:13 -0800)
committerTony Luck <tony.luck@intel.com>
Thu, 17 Nov 2011 21:13:29 +0000 (13:13 -0800)
commit3d6d8d20ec4fd3b256632edb373a9c504724b8a9
tree6bb1a530bb50fcdb24a2db48d095480e741ae371
parentf6f8285132907757ef84ef8dae0a1244b8cde6ac
pstore: pass reason to backend write callback

This allows a backend to filter on the dmesg reason as well as the pstore
reason. When ramoops is switched to pstore, this is needed since it has
no interest in storing non-crash dmesg details.

Drop pstore_write() as it has no users, and handling the "reason" here
has no obviously correct value.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
drivers/acpi/apei/erst.c
drivers/firmware/efivars.c
fs/pstore/platform.c
include/linux/pstore.h