[PATCH] staging: erofs: use the new LZ4_decompress_safe_partial()

Chao Yu yuchao0 at huawei.com
Thu Nov 8 17:11:47 AEDT 2018


On 2018/11/8 12:00, Gao Xiang wrote:
> LZ4_decompress_safe_partial() can now decode exactly the nb of bytes
> requested after the upstreamed commit 2209fda323e2 ("lib/lz4: update LZ4
> decompressor module"), remove the erofs hacked lz4 decompression code.
> 
> A more cleaned compressor wrapper will be introduced in the subsequent
> patches in order to prepare for supporting multiple compression algorithms.
> 
> Signed-off-by: Gao Xiang <gaoxiang25 at huawei.com>
> ---
> 
> Hi Chao,
>  Could you please kindly confirm (review) this before merging into the staging tree?

Looks good to me.

Reviewed-by: Chao Yu <yuchao0 at huawei.com>

Thanks,



More information about the Linux-erofs mailing list