erofs: add support for the full decompressed length
authorGao Xiang <hsiangkao@linux.alibaba.com>
Wed, 18 Aug 2021 15:22:31 +0000 (23:22 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Wed, 18 Aug 2021 16:13:26 +0000 (00:13 +0800)
commitd95ae5e25326092d61613acf98280270dde22778
tree36b5925910fee454c0cfe5876d7d1762876c4259
parentd252ff3de786a28b1bedf4c03fb31d142d32219b
erofs: add support for the full decompressed length

Previously, there is no need to get the full decompressed length since
EROFS supports partial decompression. However for some other cases
such as fiemap, the full decompressed length is necessary for iomap to
make it work properly.

This patch adds a way to get the full decompressed length. Note that
it takes more metadata overhead and it'd be avoided if possible in the
performance sensitive scenario.

Link: https://lore.kernel.org/r/20210818152231.243691-1-hsiangkao@linux.alibaba.com
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/internal.h
fs/erofs/zmap.c