erofs: tidy up z_erofs_lz4_decompress
authorGao Xiang <hsiangkao@linux.alibaba.com>
Tue, 28 Dec 2021 05:46:00 +0000 (13:46 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Tue, 28 Dec 2021 22:41:59 +0000 (06:41 +0800)
commitd67aee76d41861cda99b1ea13f8bf33fd06c5f20
tree4083cf0207d04ff2962db1db3a1317e9c5340b61
parent469407a3b5ed9390cfacb0363d1cc926a51f6a14
erofs: tidy up z_erofs_lz4_decompress

To prepare for the upcoming ztailpacking feature and further
cleanups, introduce a unique z_erofs_lz4_decompress_ctx to keep
the context, including inpages, outpages and oend, which are
frequently used by the lz4 decompressor.

No logic changes.

Link: https://lore.kernel.org/r/20211228054604.114518-2-hsiangkao@linux.alibaba.com
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/decompressor.c