diff options
author | Kees Cook <keescook@chromium.org> | 2017-03-03 22:09:18 -0800 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2017-03-07 14:00:55 -0800 |
commit | 125cc42baf8ab2149c207f8a360ea25668b8422d (patch) | |
tree | 85bd4128f1e633e4d611477da9fba6f98fb44940 /fs/pstore/platform.c | |
parent | 1edd1aa397ad3ca5f1fca1961c13910ef53f16e8 (diff) | |
download | op-kernel-dev-125cc42baf8ab2149c207f8a360ea25668b8422d.zip op-kernel-dev-125cc42baf8ab2149c207f8a360ea25668b8422d.tar.gz |
pstore: Replace arguments for read() API
The argument list for the pstore_read() interface is unwieldy. This changes
passes the new struct pstore_record instead. The erst backend was already
doing something similar internally.
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'fs/pstore/platform.c')
-rw-r--r-- | fs/pstore/platform.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c index 168e03f..47968c2 100644 --- a/fs/pstore/platform.c +++ b/fs/pstore/platform.c @@ -807,12 +807,7 @@ void pstore_get_records(int quiet) if (psi->open && psi->open(psi)) goto out; - while ((record.size = psi->read(&record.id, &record.type, - &record.count, &record.time, - &record.buf, &record.compressed, - &record.ecc_notice_size, - record.psi)) > 0) { - + while ((record.size = psi->read(&record)) > 0) { decompress_record(&record); rc = pstore_mkfile(&record); |