erofs: reserve physical_clusterbits[]
authorGao Xiang <hsiangkao@redhat.com>
Wed, 7 Apr 2021 04:39:18 +0000 (12:39 +0800)
committerGao Xiang <hsiangkao@redhat.com>
Wed, 7 Apr 2021 04:41:22 +0000 (12:41 +0800)
commit54e0b6c873dcbd02b9b479c893f6fba8fcbc6a9c
treecc32143a352c780dc58f6f9da9b8ff2ca1135cf6
parentfe6adcce7e297fcb49f40c62df42334690c3f848
erofs: reserve physical_clusterbits[]

Formal big pcluster design is actually more powerful / flexable than
the previous thought whose pclustersize was fixed as power-of-2 blocks,
which was obviously inefficient and space-wasting. Instead, pclustersize
can now be set independently for each pcluster, so various pcluster
sizes can also be used together in one file if mkfs wants (for example,
according to data type and/or compression ratio).

Let's get rid of previous physical_clusterbits[] setting (also notice
that corresponding on-disk fields are still 0 for now). Therefore,
head1/2 can be used for at most 2 different algorithms in one file and
again pclustersize is now independent of these.

Link: https://lore.kernel.org/r/20210407043927.10623-2-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
fs/erofs/zdata.c
fs/erofs/zmap.c