Commit ba4884a6 authored by Rui Salvaterra's avatar Rui Salvaterra Committed by Richard Weinberger

ubifs: Default to zstd compression

Compared to lzo and zlib, zstd is the best all-around performer, both in terms
of speed and compression ratio. Set it as the default, if available.
Signed-off-by: default avatarRui Salvaterra <rsalvaterra@gmail.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 3e903315
......@@ -53,6 +53,9 @@
static int get_default_compressor(struct ubifs_info *c)
{
if (ubifs_compr_present(c, UBIFS_COMPR_ZSTD))
return UBIFS_COMPR_ZSTD;
if (ubifs_compr_present(c, UBIFS_COMPR_LZO))
return UBIFS_COMPR_LZO;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment