Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
zram_lib.sh: fix variable name and algorithm retrieval
The compression algorithm was stored into a local variable $algs, however the variable name $zram_algs was used in the for loop later. Use local variable $algs and remove now unused $zram_algs. This allows us to use all actually available algorithms instead of 4 times lzo. This requires to get rid of the square brackets that indicates the compression algorithm currently in use: $ cat /sys/block/zram0/comp_algorithm [lzo] lz4 lz4hc 842 zstd Reviewed-by: Cyril Hrubis <[email protected]> Reviewed-by: Petr Vorel <[email protected]> Signed-off-by: Po-Hsu Lin <[email protected]> [ pvorel: removed $zram_algs ] Signed-off-by: Petr Vorel <[email protected]>
- Loading branch information