From 1edd1aa397ad3ca5f1fca1961c13910ef53f16e8 Mon Sep 17 00:00:00 2001 From: Kees Cook Date: Fri, 3 Mar 2017 18:16:32 -0800 Subject: 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 --- fs/pstore/platform.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'fs/pstore/platform.c') 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) -- cgit v1.2.3