diff options
author | Kees Cook <keescook@chromium.org> | 2018-10-18 11:17:42 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-05-22 07:37:45 +0200 |
commit | f4bf101be366d1075767f21a10b1bf587ce2a52f (patch) | |
tree | d7c70041cd6da78df131796143ba8b66e234ce82 /fs/pstore/internal.h | |
parent | 627bb2d93b4d48f89e2087b3149c0a8444e5a1d4 (diff) | |
download | linux-stable-f4bf101be366d1075767f21a10b1bf587ce2a52f.tar.gz |
pstore: Centralize init/exit routines
commit cb095afd44768bf495894b9ad063bd078e4bb201 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.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 |