linux-hardened/drivers/staging/erofs
Gao Xiang 366c96a3a8 staging: erofs: introduce a customized LZ4 decompression
We have to reduce the memory cost as much as possible,
so we don't want to decompress more data beyond
the output buffer size, however "LZ4_decompress_safe_partial"
doesn't guarantee to stop at the arbitary end position,
but stop just after its current LZ4 "sequence" is completed.

Link: https://groups.google.com/forum/#!topic/lz4c/_3kkz5N6n00

Therefore, I hacked the LZ4 decompression logic by hand,
probably NOT the fastest approach, and hope for better
implementation.

Signed-off-by: Miao Xie <miaoxie@huawei.com>
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-07-27 17:24:09 +02:00
..
include staging: erofs: <linux/tagptr.h>: introduce tagged pointer 2018-07-27 17:24:08 +02:00
data.c staging: erofs: globalize prepare_bio and __submit_bio 2018-07-27 17:24:08 +02:00
dir.c staging: erofs: add directory operations 2018-07-27 17:22:00 +02:00
erofs_fs.h
inode.c staging: erofs: support tracepoint 2018-07-27 17:24:08 +02:00
internal.h staging: erofs: globalize prepare_bio and __submit_bio 2018-07-27 17:24:08 +02:00
Kconfig staging: erofs: add erofs_map_blocks_iter 2018-07-27 17:24:08 +02:00
lz4defs.h staging: erofs: introduce a customized LZ4 decompression 2018-07-27 17:24:09 +02:00
Makefile staging: erofs: introduce a customized LZ4 decompression 2018-07-27 17:24:09 +02:00
namei.c staging: erofs: support tracepoint 2018-07-27 17:24:08 +02:00
super.c staging: erofs: support tracepoint 2018-07-27 17:24:08 +02:00
unzip_lz4.c staging: erofs: introduce a customized LZ4 decompression 2018-07-27 17:24:09 +02:00
unzip_pagevec.h staging: erofs: introduce pagevec for unzip subsystem 2018-07-27 17:24:08 +02:00
unzip_vle.c staging: erofs: add erofs_map_blocks_iter 2018-07-27 17:24:08 +02:00
utils.c staging: erofs: add erofs_allocpage 2018-07-27 17:24:08 +02:00
xattr.c staging: erofs: introduce xattr & acl support 2018-07-27 17:24:08 +02:00
xattr.h staging: erofs: introduce xattr & acl support 2018-07-27 17:24:08 +02:00