diff options
author | Kees Cook <keescook@chromium.org> | 2018-10-18 11:17:42 -0700 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2018-10-22 07:11:58 -0700 |
commit | cb095afd44768bf495894b9ad063bd078e4bb201 (patch) | |
tree | 60305776bfe4f5bb50f9df1527893f04b7f2a016 /fs/pstore/internal.h | |
parent | 57361846b52bc686112da6ca5368d11210796804 (diff) |
pstore: Centralize init/exit routines
In preparation for having additional actions during init/exit, this moves
the init/exit into platform.c, centralizing the logic to make call outs
to the fs init/exit.
Signed-off-by: Kees Cook <keescook@chromium.org>
Tested-by: Guenter Roeck <groeck@chromium.org>
Diffstat (limited to 'fs/pstore/internal.h')
-rw-r--r-- | fs/pstore/internal.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/pstore/internal.h b/fs/pstore/internal.h index fb767e28aeb2..7062ea4bc57c 100644 --- a/fs/pstore/internal.h +++ b/fs/pstore/internal.h @@ -37,7 +37,8 @@ extern bool pstore_is_mounted(void); extern void pstore_record_init(struct pstore_record *record, struct pstore_info *psi); -/* Called during module_init() */ -extern void __init pstore_choose_compression(void); +/* Called during pstore init/exit. */ +int __init pstore_init_fs(void); +void __exit pstore_exit_fs(void); #endif |