staging: erofs: introduce generic decompression backend
authorGao Xiang <gaoxiang25@huawei.com>
Mon, 24 Jun 2019 07:22:55 +0000 (15:22 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Jun 2019 01:44:39 +0000 (09:44 +0800)
commit7fc45dbc938a2e69ecd6a78a3c0074aa6c11fac9
tree94a41315c912d3c1395e4463a2c38c2684cc78c5
parent274812334b46de51fc905dc030215e69cfcafd17
staging: erofs: introduce generic decompression backend

This patch adds a new generic decompression framework
in order to replace the old LZ4-specific decompression code.

Even though LZ4 is still the only supported algorithm, yet
it is more cleaner and easy to integrate new algorithm than
the old almost hard-coded decompression backend.

Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/Makefile
drivers/staging/erofs/compress.h
drivers/staging/erofs/decompressor.c [new file with mode: 0644]