diff options
author | Kees Cook <keescook@chromium.org> | 2017-03-03 18:16:32 -0800 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2017-03-07 14:00:55 -0800 |
commit | 1edd1aa397ad3ca5f1fca1961c13910ef53f16e8 (patch) | |
tree | 608e00d7713f78d48cfa199d1ba9294d59587b70 /fs/pstore/platform.c | |
parent | 634f8f5167c88052ce6d28e519ff6325172191dc (diff) |
pstore: Switch pstore_mkfile to pass record
Instead of the long list of arguments, just pass the new record struct.
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'fs/pstore/platform.c')
-rw-r--r-- | fs/pstore/platform.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c index 0503380704de..168e03fd5e58 100644 --- a/fs/pstore/platform.c +++ b/fs/pstore/platform.c @@ -814,11 +814,7 @@ void pstore_get_records(int quiet) record.psi)) > 0) { decompress_record(&record); - rc = pstore_mkfile(record.type, psi->name, record.id, - record.count, record.buf, - record.compressed, - record.size + record.ecc_notice_size, - record.time, record.psi); + rc = pstore_mkfile(&record); /* Free buffer other than big oops */ if (record.buf != big_oops_buf) |