1 From dcdf415b740923530dc71d89fecc8361078473f5 Mon Sep 17 00:00:00 2001
2 From: Rui Salvaterra <rsalvaterra@gmail.com>
3 Date: Mon, 5 Apr 2021 16:11:55 +0100
4 Subject: [PATCH] ubifs: default to zstd compression
6 Compared to lzo and zlib, zstd is the best all-around performer, both in terms
7 of speed and compression ratio. Set it as the default, if available.
9 Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
12 1 file changed, 3 insertions(+)
18 static int get_default_compressor(struct ubifs_info *c)
20 + if (ubifs_compr_present(c, UBIFS_COMPR_ZSTD))
21 + return UBIFS_COMPR_ZSTD;
23 if (ubifs_compr_present(c, UBIFS_COMPR_LZO))
24 return UBIFS_COMPR_LZO;