From 986e9842fb6825f65918ed400b29c8c878359b7a Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Wed, 12 Jul 2023 22:27:16 -0400 Subject: bcachefs: Compression levels This allows including a compression level when specifying a compression type, e.g. compression=zstd:15 Values from 1 through 15 indicate compression levels, 0 or unspecified indicates the default. For LZ4, values 3-15 specify that the HC algorithm should be used. Note that for compatibility, extents themselves only include the compression type, not the compression level. This means that specifying the same compression algorithm but different compression levels for the compression and background_compression options will have no effect. XXX: perhaps we could add a warning for this Signed-off-by: Kent Overstreet --- fs/bcachefs/Kconfig | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fs/bcachefs/Kconfig') diff --git a/fs/bcachefs/Kconfig b/fs/bcachefs/Kconfig index 49776ba0a031..df13a4f9a6e3 100644 --- a/fs/bcachefs/Kconfig +++ b/fs/bcachefs/Kconfig @@ -9,6 +9,8 @@ config BCACHEFS_FS select FS_POSIX_ACL select LZ4_COMPRESS select LZ4_DECOMPRESS + select LZ4HC_COMPRESS + select LZ4HC_DECOMPRESS select ZLIB_DEFLATE select ZLIB_INFLATE select ZSTD_COMPRESS -- cgit v1.2.3