diff options
author | Kees Cook <keescook@chromium.org> | 2018-03-07 00:57:38 +0100 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2018-03-07 21:43:35 +0100 |
commit | fe1d475888eecf1319458ee916e642e3e5e41c28 (patch) | |
tree | d975fba8225eec25ad2b3fd9ba5fd8e7ccfeb3dd /fs/pstore/inode.c | |
parent | pstore: Avoid size casts for 842 compression (diff) | |
download | linux-fe1d475888eecf1319458ee916e642e3e5e41c28.tar.xz linux-fe1d475888eecf1319458ee916e642e3e5e41c28.zip |
pstore: Select compression at runtime
To allow for easier build test coverage and run-time testing, this allows
multiple compression algorithms to be built into pstore. Still only one
is supported to operate at a time (which can be selected at build time
or at boot time, similar to how LSMs are selected).
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'fs/pstore/inode.c')
-rw-r--r-- | fs/pstore/inode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/pstore/inode.c b/fs/pstore/inode.c index d814723fb27d..5fcb845b9fec 100644 --- a/fs/pstore/inode.c +++ b/fs/pstore/inode.c @@ -486,6 +486,8 @@ static int __init init_pstore_fs(void) { int err; + pstore_choose_compression(); + /* Create a convenient mount point for people to access pstore */ err = sysfs_create_mount_point(fs_kobj, "pstore"); if (err) |