]> git.baikalelectronics.ru Git - kernel.git/commit
erofs: record the longest decompressed size in this round
authorGao Xiang <hsiangkao@linux.alibaba.com>
Fri, 15 Jul 2022 15:42:02 +0000 (23:42 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 21 Jul 2022 14:55:44 +0000 (22:55 +0800)
commit89634a7900be714815ad8374be7186181de531e4
tree6a31cb1fe91c9a9b8da06cdc3a584bd53b1844b6
parent02f58596eb4e567384b33a70d35c401bb1f1e94f
erofs: record the longest decompressed size in this round

Currently, `pcl->length' records the longest decompressed length
as long as the pcluster itself isn't reclaimed.  However, such
number is unneeded for the general cases since it doesn't indicate
the exact decompressed size in this round.

Instead, let's record the decompressed size for this round instead,
thus `pcl->nr_pages' can be completely dropped and pageofs_out is
also designed to be kept in sync with `pcl->length'.

Acked-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20220715154203.48093-16-hsiangkao@linux.alibaba.com
fs/erofs/zdata.c
fs/erofs/zdata.h