erofs: introduce partial-referenced pclusters
authorGao Xiang <hsiangkao@linux.alibaba.com>
Fri, 23 Sep 2022 01:49:15 +0000 (09:49 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Mon, 26 Sep 2022 15:55:43 +0000 (23:55 +0800)
commit5c2a64252c5dc4cfe78e5b2a531c118894e3d155
tree356748bce348364c288493b9eeb9de8994b1a95e
parentb15b2e307c3a1970d92da77a3ef57ee53d119d8e
erofs: introduce partial-referenced pclusters

Due to deduplication for compressed data, pclusters can be partially
referenced with their prefixes.

Together with the user-space implementation, it enables EROFS
variable-length global compressed data deduplication with rolling
hash.

Link: https://lore.kernel.org/r/20220923014915.4362-1-hsiangkao@linux.alibaba.com
Reviewed-by: Yue Hu <huyue2@coolpad.com>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/decompressor_lzma.c
fs/erofs/erofs_fs.h
fs/erofs/internal.h
fs/erofs/super.c
fs/erofs/sysfs.c
fs/erofs/zdata.c
fs/erofs/zmap.c