erofs: introduce the secondary compression head
authorGao Xiang <hsiangkao@linux.alibaba.com>
Sun, 17 Oct 2021 16:57:21 +0000 (00:57 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Tue, 19 Oct 2021 15:44:19 +0000 (23:44 +0800)
commit72bb52620fdffca95a14ee52188a33cd84e574e2
tree3c7d10c130b8ca2321dbd540e9ca83085cf58f92
parent8f89926290c4b3d31748d5089b27952243be0693
erofs: introduce the secondary compression head

Previously, for each HEAD lcluster, it can be either HEAD or PLAIN
lcluster to indicate whether the whole pcluster is compressed or not.

In this patch, a new HEAD2 head type is introduced to specify another
compression algorithm other than the primary algorithm for each
compressed file, which can be used for upcoming LZMA compression and
LZ4 range dictionary compression for various data patterns.

It has been stayed in the EROFS roadmap for years. Complete it now!

Link: https://lore.kernel.org/r/20211017165721.2442-1-xiang@kernel.org
Reviewed-by: Yue Hu <huyue2@yulong.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/erofs_fs.h
fs/erofs/zmap.c