erofs: introduce z_erofs_fixup_insize
authorGao Xiang <hsiangkao@linux.alibaba.com>
Tue, 28 Dec 2021 05:46:01 +0000 (13:46 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Tue, 28 Dec 2021 22:42:07 +0000 (06:42 +0800)
commit10e5f6e482e18dcdee9a9b7ff1a66f4977dd1ec2
treef78a209a88e2660e3e2ac6f49b94ba5ca512eaf6
parentd67aee76d41861cda99b1ea13f8bf33fd06c5f20
erofs: introduce z_erofs_fixup_insize

To prepare for the upcoming ztailpacking feature, introduce
z_erofs_fixup_insize() and pageofs_in to wrap up the process
to get the exact compressed size via zero padding.

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