pstore: Populate pstore record->time field
authorKees Cook <keescook@chromium.org>
Fri, 19 May 2017 22:29:10 +0000 (15:29 -0700)
committerKees Cook <keescook@chromium.org>
Wed, 31 May 2017 17:13:44 +0000 (10:13 -0700)
commitc7f3c595f6ff7a1cfbf7ac782722bf5173e27775
tree7adaa468343cb5d9a45ce738d1fee91ca22dc489
parente581ca813a40a4ee53c862d8f6303f486c4b4c34
pstore: Populate pstore record->time field

The current time will be initially available in the record->time field
for all pstore_read() and pstore_write() calls. Backends can either
update the field during read(), or use the field during write() instead
of fetching time themselves.

Signed-off-by: Kees Cook <keescook@chromium.org>
drivers/firmware/efi/efi-pstore.c
fs/pstore/platform.c
fs/pstore/ram.c
include/linux/pstore.h