[PATCH v2 2/3] fs/erofs: add lz4 1.8.3 decompressor

Huang Jianan jnhuang95 at gmail.com
Mon Aug 30 15:30:45 CEST 2021


在 2021/8/26 6:39, Tom Rini 写道:
> On Mon, Aug 23, 2021 at 08:36:45PM +0800, Huang Jianan wrote:
>
>> From: Huang Jianan <huangjianan at oppo.com>
>>
>> In order to use the newest LZ4_decompress_safe_partial() which can
>> now decode exactly the nb of bytes requested.
>>
>> Signed-off-by: Huang Jianan <huangjianan at oppo.com>
>> ---
>>   fs/erofs/Makefile |   3 +-
>>   fs/erofs/lz4.c    | 534 ++++++++++++++++++++++++++++++++++++++++++++++
>>   fs/erofs/lz4.h    |   5 +
>>   3 files changed, 541 insertions(+), 1 deletion(-)
>>   create mode 100644 fs/erofs/lz4.c
>>   create mode 100644 fs/erofs/lz4.h
> Why not use the existing lz4 support, or if it needs updating for new
> features, update it?
erofs use lz4 partial decompress, this feature is fully supported after 
lz4 1.8.3,
I will try to upgrade the existing one.

Thanks,
Jianan



More information about the U-Boot mailing list