From e581ca813a40a4ee53c862d8f6303f486c4b4c34 Mon Sep 17 00:00:00 2001 From: Kees Cook Date: Fri, 19 May 2017 15:10:31 -0700 Subject: pstore: Create common record initializer In preparation for setting timestamps in the pstore core, create a common initializer routine, instead of using static initializers. Signed-off-by: Kees Cook --- fs/pstore/internal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fs/pstore/internal.h') diff --git a/fs/pstore/internal.h b/fs/pstore/internal.h index c416e653dc4f..58051265626f 100644 --- a/fs/pstore/internal.h +++ b/fs/pstore/internal.h @@ -30,5 +30,7 @@ extern void pstore_get_backend_records(struct pstore_info *psi, extern int pstore_mkfile(struct dentry *root, struct pstore_record *record); extern bool pstore_is_mounted(void); +extern void pstore_record_init(struct pstore_record *record, + struct pstore_info *psi); #endif -- cgit