提交 ba4884a6 编写于 作者: R Rui Salvaterra 提交者: 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: NRui Salvaterra <rsalvaterra@gmail.com>
Signed-off-by: NRichard Weinberger <richard@nod.at>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册