We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f09307f commit 1bab170Copy full SHA for 1bab170
drivers/block/zram/zram_drv.c
@@ -2240,6 +2240,7 @@ static int zram_add(void)
2240
zram->disk->private_data = zram;
2241
snprintf(zram->disk->disk_name, 16, "zram%d", device_id);
2242
atomic_set(&zram->pp_in_progress, 0);
2243
+ comp_algorithm_set(zram, ZRAM_PRIMARY_COMP, default_compressor);
2244
2245
/* Actual capacity set using sysfs (/sys/block/zram<id>/disksize */
2246
set_capacity(zram->disk, 0);
@@ -2274,8 +2275,6 @@ static int zram_add(void)
2274
2275
if (ret)
2276
goto out_cleanup_disk;
2277
- comp_algorithm_set(zram, ZRAM_PRIMARY_COMP, default_compressor);
2278
-
2279
zram_debugfs_register(zram);
2280
pr_info("Added device: %s\n", zram->disk->disk_name);
2281
return device_id;
0 commit comments