zram: enable dedup by default

Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
Change-Id: I04cc2a0685661ca04bed542a634b19fcb50cd3f4
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
This commit is contained in:
Park Ju Hyung 2021-04-04 16:47:36 +09:00 committed by spakkkk
parent a2b9d5408e
commit a00aaaba2d

View File

@ -2019,6 +2019,9 @@ static int zram_add(void)
init_rwsem(&zram->init_lock);
#ifdef CONFIG_ZRAM_WRITEBACK
spin_lock_init(&zram->wb_limit_lock);
#endif
#ifdef CONFIG_ZRAM_DEDUP
zram->use_dedup = true;
#endif
queue = blk_alloc_queue(GFP_KERNEL);
if (!queue) {