erofs: add big physical cluster definition
authorGao Xiang <hsiangkao@redhat.com>
Wed, 7 Apr 2021 04:39:22 +0000 (12:39 +0800)
committerGao Xiang <hsiangkao@redhat.com>
Fri, 9 Apr 2021 19:20:17 +0000 (03:20 +0800)
commit5404c33010cb8ee063c05376d4a2eba129872281
treea852d5fb7a705a3a0776d0a5cfe2ffbb8f959f76
parent81382f5f5cb0c9c5694c19d36460f757a8c96841
erofs: add big physical cluster definition

Big pcluster indicates the size of compressed data for each physical
pcluster is no longer fixed as block size, but could be more than 1
block (more accurately, 1 logical pcluster)

When big pcluster feature is enabled for head0/1, delta0 of the 1st
non-head lcluster index will keep block count of this pcluster in
lcluster size instead of 1. Or, the compressed size of pcluster
should be 1 lcluster if pcluster has no non-head lcluster index.

Also note that BIG_PCLUSTER feature reuses COMPR_CFGS feature since
it depends on COMPR_CFGS and will be released together.

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