]> www.infradead.org Git - linux-platform-drivers-x86.git/commit
erofs: fix up inplace I/O pointer for big pcluster
authorGao Xiang <hsiangkao@redhat.com>
Wed, 7 Apr 2021 04:39:21 +0000 (12:39 +0800)
committerGao Xiang <hsiangkao@redhat.com>
Fri, 9 Apr 2021 19:20:16 +0000 (03:20 +0800)
commit81382f5f5cb0c9c5694c19d36460f757a8c96841
treee83184920f68217216273205917bb5e29d708432
parent9f6cc76e6ff0631a99cd94eab8af137057633a52
erofs: fix up inplace I/O pointer for big pcluster

When picking up inplace I/O pages, it should be traversed in reverse
order in aligned with the traversal order of file-backed online pages.
Also, index should be updated together when preloading compressed pages.

Previously, only page-sized pclustersize was supported so no problem
at all. Also rename `compressedpages' to `icpage_ptr' to reflect its
functionality.

Link: https://lore.kernel.org/r/20210407043927.10623-5-xiang@kernel.org
Acked-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Gao Xiang <hsiangkao@redhat.com>
fs/erofs/zdata.c