summaryrefslogtreecommitdiff
path: root/fs/erofs/decompressor.c
diff options
context:
space:
mode:
authorHuang Jianan <huangjianan@oppo.com>2021-11-12 19:09:33 +0300
committerGao Xiang <hsiangkao@linux.alibaba.com>2021-12-01 16:28:00 +0300
commit7e508f2ca8bbda8cabbd4753bc727a7f66837a12 (patch)
tree5f5ecc6e59a6785564a3611e4bda8fccd3a4043d /fs/erofs/decompressor.c
parentd58071a8a76d779eedab38033ae4c821c30295a5 (diff)
downloadlinux-7e508f2ca8bbda8cabbd4753bc727a7f66837a12.tar.xz
erofs: rename lz4_0pading to zero_padding
Renaming lz4_0padding to zero_padding globally since LZMA and later algorithms also need that. Link: https://lore.kernel.org/r/20211112160935.19394-1-jnhuang95@gmail.com Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Huang Jianan <huangjianan@oppo.com> Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Diffstat (limited to 'fs/erofs/decompressor.c')
-rw-r--r--fs/erofs/decompressor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/erofs/decompressor.c b/fs/erofs/decompressor.c
index bf37fc76b182..c373a199c407 100644
--- a/fs/erofs/decompressor.c
+++ b/fs/erofs/decompressor.c
@@ -195,8 +195,8 @@ static int z_erofs_lz4_decompress_mem(struct z_erofs_decompress_req *rq,
inputmargin = 0;
support_0padding = false;
- /* decompression inplace is only safe when 0padding is enabled */
- if (erofs_sb_has_lz4_0padding(EROFS_SB(rq->sb))) {
+ /* decompression inplace is only safe when zero_padding is enabled */
+ if (erofs_sb_has_zero_padding(EROFS_SB(rq->sb))) {
support_0padding = true;
while (!headpage[inputmargin & ~PAGE_MASK])