pstore: make pstore write function return normal success/fail value
authorChen Gong <gong.chen@linux.intel.com>
Wed, 12 Oct 2011 16:17:24 +0000 (09:17 -0700)
committerTony Luck <tony.luck@intel.com>
Wed, 12 Oct 2011 16:17:24 +0000 (09:17 -0700)
commitb238b8fa93353ab50c9a2b1e2fa47a0ab01c37cd
treea46a6ce7567d9826ae48c2f3dc5aa0167de1f26c
parentabd4d5587be911f63592537284dad78766d97d62
pstore: make pstore write function return normal success/fail value

Currently pstore write interface employs record id as return
value, but it is not enough because it can't tell caller if
the write operation is successful. Pass the record id back via
an argument pointer and return zero for success, non-zero for
failure.

Signed-off-by: Chen Gong <gong.chen@linux.intel.com>
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