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 428c7e1 commit 87fb5f5Copy full SHA for 87fb5f5
drivers/block/zram/zram_drv.c
@@ -2278,14 +2278,14 @@ static int zram_add(void)
2278
zram->disk->private_data = zram;
2279
snprintf(zram->disk->disk_name, 16, "zram%d", device_id);
2280
2281
+ comp_algorithm_set(zram, ZRAM_PRIMARY_COMP, default_compressor);
2282
+
2283
/* Actual capacity set using sysfs (/sys/block/zram<id>/disksize */
2284
set_capacity(zram->disk, 0);
2285
ret = device_add_disk(NULL, zram->disk, zram_disk_groups);
2286
if (ret)
2287
goto out_cleanup_disk;
2288
- comp_algorithm_set(zram, ZRAM_PRIMARY_COMP, default_compressor);
-
2289
zram_debugfs_register(zram);
2290
pr_info("Added device: %s\n", zram->disk->disk_name);
2291
return device_id;
0 commit comments