Although f2fs (flash friendly file system) allows users to choose compression algorithms such as LZO, lz4 and zstd by themselves, and even allows users to specify a specific file extension to limit the compression of transparent file system, it does not allow users to easily specify the compression level. Fortunately, Linux kernel 5.12, which will be launched this spring, will change that.
Before the Linux kernel 5.12 merge window period, a patch was put on the "dev" tree of f2fs, which has been circulating for several weeks, allowing users to easily configure the compression level. compress_ The algorithm mount option is extended to allow you to specify a level. If you want to override any level preference, such as lz4 and zstd compression algorithms, the supported format is [algorithm]: [level].