erofs: support inline data decompression
authorYue Hu <huyue2@yulong.com>
Tue, 28 Dec 2021 23:29:19 +0000 (07:29 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 30 Dec 2021 16:50:50 +0000 (00:50 +0800)
commitcecf864d3d76d50e3d9c58145e286a0b8c284e92
tree05934d21aafe3b7fa7ac4cfab88cdad7ce8abda9
parentab749badf9f41f32509cd103391b81ea7e684b76
erofs: support inline data decompression

Currently, we have already support tail-packing inline for
uncompressed file, let's also implement this for compressed
files to save I/Os and storage space.

Different from normal pclusters, compressed data is available
in advance because of other metadata I/Os. Therefore, they
directly move into the bypass queue without extra I/O submission.

It's the last compression feature before folio/subpage support.

Link: https://lore.kernel.org/r/20211228232919.21413-1-xiang@kernel.org
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Yue Hu <huyue2@yulong.com>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/zdata.c
fs/erofs/zdata.h