diff options
author | Chao Yu <yuchao0@huawei.com> | 2020-04-08 13:56:32 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2020-05-12 05:36:46 +0200 |
commit | 6d92b201035dfe77426f8814fd5259db385a18b3 (patch) | |
tree | db469dfc8a3f81374c5e212035ea34fc58d83ac7 /fs/f2fs/f2fs.h | |
parent | f2fs: introduce mempool for {,de}compress intermediate page allocation (diff) | |
download | linux-6d92b201035dfe77426f8814fd5259db385a18b3.tar.xz linux-6d92b201035dfe77426f8814fd5259db385a18b3.zip |
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>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index d098b94ca22d..0dab21e764d9 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -1281,6 +1281,7 @@ enum compress_algorithm_type { COMPRESS_LZO, COMPRESS_LZ4, COMPRESS_ZSTD, + COMPRESS_LZORLE, COMPRESS_MAX, }; |