f2fs: compress: support lzo-rle compress algorithm
authorChao Yu <yuchao0@huawei.com>
Wed, 8 Apr 2020 11:56:32 +0000 (19:56 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 12 May 2020 03:36:46 +0000 (20:36 -0700)
commit6d92b201035dfe77426f8814fd5259db385a18b3
treedb469dfc8a3f81374c5e212035ea34fc58d83ac7
parent5e6bbde95982300d66d78fb282d4ee39df78fc33
f2fs: compress: support lzo-rle compress algorithm

LZO-RLE extension (run length encoding) was introduced to improve
performance of LZO algorithm in scenario of data contains many zeros,
zram has changed to use this extended algorithm by default, this
patch adds to support this algorithm extension, to enable this
extension, it needs to enable F2FS_FS_LZO and F2FS_FS_LZORLE config,
and specifies "compress_algorithm=lzo-rle" mountoption.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Documentation/filesystems/f2fs.rst
fs/f2fs/Kconfig
fs/f2fs/compress.c
fs/f2fs/f2fs.h
fs/f2fs/super.c
include/trace/events/f2fs.h