On Mon, Aug 23, 2021 at 08:36:45PM +0800, Huang Jianan wrote: > From: Huang Jianan > > 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 > --- > 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? -- Tom