Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Rui Salvaterra <rsalvaterra@gmail.com>
Signed-off-by: Richard Weinberger <richard@nod.at>

authored by

Rui Salvaterra and committed by
Richard Weinberger
ba4884a6 3e903315

+3
+3
fs/ubifs/sb.c
··· 53 53 54 54 static int get_default_compressor(struct ubifs_info *c) 55 55 { 56 + if (ubifs_compr_present(c, UBIFS_COMPR_ZSTD)) 57 + return UBIFS_COMPR_ZSTD; 58 + 56 59 if (ubifs_compr_present(c, UBIFS_COMPR_LZO)) 57 60 return UBIFS_COMPR_LZO; 58 61