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:
parent
a2b9d5408e
commit
a00aaaba2d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user