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

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
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;