zram: Set default compressor to lz4

This commit is contained in:
haridhayal11 2022-03-03 05:43:51 +00:00 committed by Ksawlii
parent 2129eb4fe8
commit bd260c10fc
2 changed files with 5 additions and 1 deletions

View file

@ -2,7 +2,11 @@
config ZRAM
tristate "Compressed RAM block device support"
depends on BLOCK && SYSFS && ZSMALLOC && CRYPTO
<<<<<<< HEAD
select CRYPTO_ZSTD
=======
select CRYPTO_LZ4
>>>>>>> 3413b95770db (zram: Set default compressor to lz4)
help
Creates virtual block devices called /dev/zramX (X = 0, 1, ...).
Pages written to these disks are compressed and stored in memory

View file

@ -59,7 +59,7 @@ static DEFINE_IDR(zram_index_idr);
static DEFINE_MUTEX(zram_index_mutex);
static int zram_major;
static const char *default_compressor = "zstd";
static const char *default_compressor = "lz4"
static bool is_lzorle;
#ifdef CONFIG_ZRAM_LRU_WRITEBACK