Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
See Documentation/blockdev/zram.txt for more information.
+config ZRAM_DEFAULT_COMP_ALGORITHM
+ string "Default ZRAM compression algorithm"
+ default "lz4"
+
if ZRAM
choice
static DEFINE_MUTEX(zram_index_mutex);
static int zram_major;
-static const char *default_compressor = "lz4";
+static const char *default_compressor = CONFIG_ZRAM_DEFAULT_COMP_ALGORITHM;
#define BACKEND_PAR_BUF_SIZE 32
static char backend_par_buf[BACKEND_PAR_BUF_SIZE];