erofs: remove the fast path of per-CPU buffer decompression
authorYue Hu <huyue2@yulong.com>
Thu, 14 Oct 2021 06:57:44 +0000 (14:57 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 14 Oct 2021 16:14:26 +0000 (00:14 +0800)
commit5b6e7e120e716231a0bf9ad201438d72473e396d
tree509e1531d8aea4cef1d90d0d5ec567dd46772900
parent9e1ff307c779ce1f0f810c7ecce3d95bbae40896
erofs: remove the fast path of per-CPU buffer decompression

As Xiang mentioned, such path has no real impact to our current
decompression strategy, remove it directly. Also, update the return
value of z_erofs_lz4_decompress() to 0 if success to keep consistent
with LZMA which will return 0 as well for that case.

Link: https://lore.kernel.org/r/20211014065744.1787-1-zbestahu@gmail.com
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Signed-off-by: Yue Hu <huyue2@yulong.com>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/decompressor.c