Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 18d4247e authored by Nathan Chancellor's avatar Nathan Chancellor Committed by Harshit Jain
Browse files

zram: Move default compression algorithm choice to Kconfig

parent 3588dabb
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -53,3 +53,7 @@ config ZRAM_MEMORY_TRACKING
	  /sys/kernel/debug/zram/zramX/block_state.

	  See Documentation/blockdev/zram.txt for more information.

config ZRAM_DEFAULT_COMP_ALGORITHM
	string "Default ZRAM compression algorithm"
	default "lzo"
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ static DEFINE_IDR(zram_index_idr);
static DEFINE_MUTEX(zram_index_mutex);

static int zram_major;
static const char *default_compressor = "lzo";
static const char *default_compressor = CONFIG_ZRAM_DEFAULT_COMP_ALGORITHM;

/* Module params (documentation at end) */
static unsigned int num_devices = 1;