erofs: record `pclustersize` in bytes instead of pages
authorGao Xiang <hsiangkao@linux.alibaba.com>
Wed, 6 Dec 2023 09:10:54 +0000 (17:10 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 14 Dec 2023 17:47:06 +0000 (01:47 +0800)
commit54ed3fdd66055d073cb1cd2c6c65bbc0683c40cf
tree4b6b7dc8d11549001ee6e5a639ca59d52e6d76cc
parent192351616a9dde686492bcb9d1e4895a1411a527
erofs: record `pclustersize` in bytes instead of pages

Currently, compressed sizes are recorded in pages using `pclusterpages`,
However, for tailpacking pclusters, `tailpacking_size` is used instead.

This approach doesn't work when dealing with sub-page blocks. To address
this, let's switch them to the unified `pclustersize` in bytes.

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