diff options
author | 2020-04-06 20:08:03 -0700 | |
---|---|---|
committer | 2020-04-07 10:43:41 -0700 | |
commit | bb8b93b5b65130138d3c80f3136af721863f561a (patch) | |
tree | fe5bed9cc7a38155ff64f9db6ded6149f630678d /mm/compaction.c | |
parent | mm: prevent a warning when casting void* -> enum (diff) | |
download | linux-bb8b93b5b65130138d3c80f3136af721863f561a.tar.gz linux-bb8b93b5b65130138d3c80f3136af721863f561a.tar.bz2 linux-bb8b93b5b65130138d3c80f3136af721863f561a.zip |
mm/zswap: allow setting default status, compressor and allocator in Kconfig
The compressed cache for swap pages (zswap) currently needs from 1 to 3
extra kernel command line parameters in order to make it work: it has to
be enabled by adding a "zswap.enabled=1" command line parameter and if one
wants a different compressor or pool allocator than the default lzo / zbud
combination then these choices also need to be specified on the kernel
command line in additional parameters.
Using a different compressor and allocator for zswap is actually pretty
common as guides often recommend using the lz4 / z3fold pair instead of
the default one. In such case it is also necessary to remember to enable
the appropriate compression algorithm and pool allocator in the kernel
config manually.
Let's avoid the need for adding these kernel command line parameters and
automatically pull in the dependencies for the selected compressor
algorithm and pool allocator by adding an appropriate default switches to
Kconfig.
The default values for these options match what the code was using
previously as its defaults.
Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Vitaly Wool <vitaly.wool@konsulko.com>
Link: http://lkml.kernel.org/r/20200202000112.456103-1-mail@maciej.szmigiero.name
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/compaction.c')
0 files changed, 0 insertions, 0 deletions