staging: erofs: use the new LZ4_decompress_safe_partial()
authorGao Xiang <gaoxiang25@huawei.com>
Thu, 8 Nov 2018 04:00:36 +0000 (12:00 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Nov 2018 11:59:46 +0000 (03:59 -0800)
commit05f9d4a0c8c439102fb30ff5da53748e807da585
tree5061e8770105a73a370453ed14767a5e05e227b0
parent9483804a725a865abf877c1e0242120d9a21f7bb
staging: erofs: use the new LZ4_decompress_safe_partial()

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@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/Makefile
drivers/staging/erofs/lz4defs.h [deleted file]
drivers/staging/erofs/unzip_lz4.c [deleted file]
drivers/staging/erofs/unzip_vle_lz4.c