zram: Set default compressor to zstd

This commit is contained in:
Secondarian 2023-09-25 22:00:15 +02:00 committed by Kreciorek
parent 803bfc3405
commit 9c6c01a0bd
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@
config ZRAM config ZRAM
tristate "Compressed RAM block device support" tristate "Compressed RAM block device support"
depends on BLOCK && SYSFS && ZSMALLOC && CRYPTO depends on BLOCK && SYSFS && ZSMALLOC && CRYPTO
select CRYPTO_LZO select CRYPTO_ZSTD
help help
Creates virtual block devices called /dev/zramX (X = 0, 1, ...). Creates virtual block devices called /dev/zramX (X = 0, 1, ...).
Pages written to these disks are compressed and stored in memory 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 DEFINE_MUTEX(zram_index_mutex);
static int zram_major; static int zram_major;
static const char *default_compressor = "lzo-rle"; static const char *default_compressor = "zstd";
static bool is_lzorle; static bool is_lzorle;
#ifdef CONFIG_ZRAM_LRU_WRITEBACK #ifdef CONFIG_ZRAM_LRU_WRITEBACK