]> git.baikalelectronics.ru Git - kernel.git/commit
erofs: switch compressed_pages[] to bufvec
authorGao Xiang <hsiangkao@linux.alibaba.com>
Fri, 15 Jul 2022 15:41:54 +0000 (23:41 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 21 Jul 2022 14:54:37 +0000 (22:54 +0800)
commit43e207bd893142af5bd801759dd0a48c4262de55
tree20678fcfceb87ce3bb82757c825461066731e01e
parenta0407a6d092f88f92f77640592966cd03c98d3a0
erofs: switch compressed_pages[] to bufvec

Convert compressed_pages[] to bufvec in order to avoid using
page->private to keep onlinepage_index (decompressed offset)
for inplace I/O pages.

In the future, we only rely on folio->private to keep a countdown
to unlock folios and set folio_uptodate.

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