erofs: support parsing big pcluster compress indexes
authorGao Xiang <hsiangkao@redhat.com>
Wed, 7 Apr 2021 04:39:24 +0000 (12:39 +0800)
committerGao Xiang <hsiangkao@redhat.com>
Fri, 9 Apr 2021 19:20:18 +0000 (03:20 +0800)
commitcec6e93beadfd145758af2c0854fcc2abb8170cb
tree06014940295190c4a35996d6e1c23d9daeebb03e
parent4fea63f7d76e425965033938bab6488e48579e3f
erofs: support parsing big pcluster compress indexes

When INCOMPAT_BIG_PCLUSTER sb feature is enabled, legacy compress indexes
will also have the same on-disk header compact indexes to keep per-file
configurations instead of leaving it zeroed.

If ADVISE_BIG_PCLUSTER is set for a file, CBLKCNT will be loaded for each
pcluster in this file by parsing 1st non-head lcluster.

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