pstore: Pass record contents instead of copying
authorKees Cook <keescook@chromium.org>
Sun, 5 Mar 2017 06:46:41 +0000 (22:46 -0800)
committerKees Cook <keescook@chromium.org>
Tue, 7 Mar 2017 22:00:58 +0000 (14:00 -0800)
commit1dfff7dd67d1a3be4d0ab4a5313f0363966bc70d
tree0de32506ec212d7a6a5b5d78f4e2b85d11bc5371
parent7e8cc8dce17574e432945fa75882cd401c3ef673
pstore: Pass record contents instead of copying

pstore_mkfile() shouldn't have to memcpy the record contents. It can use
the existing copy instead. This adjusts the allocation lifetime management
and renames the contents variable from "data" to "buf" to assist moving to
struct pstore_record in the future.

Signed-off-by: Kees Cook <keescook@chromium.org>
fs/pstore/inode.c
fs/pstore/platform.c