]> git.baikalelectronics.ru Git - kernel.git/commit
pstore: Add priv field to pstore_record for backend specific use
authorArd Biesheuvel <ardb@kernel.org>
Wed, 22 Jun 2022 07:31:31 +0000 (09:31 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Fri, 24 Jun 2022 18:40:04 +0000 (20:40 +0200)
commit0a6c9789f355185b53142b3400568120dafadcc7
tree4ba6d8dfa417849391aaba1681294029c35aa9f0
parentae9c4ed04a1c13ea2f9f02dc89f8ac536828978c
pstore: Add priv field to pstore_record for backend specific use

The EFI pstore backend will need to store per-record variable name data
when we switch away from the efivars layer. Add a priv field to struct
pstore_record, and document it as holding a backend specific pointer
that is assumed to be a kmalloc()d buffer, and will be kfree()d when the
entire record is freed.

Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
fs/pstore/inode.c
fs/pstore/platform.c
include/linux/pstore.h