OSDN Git Service

erofs: support on-disk compressed fragments data
authorYue Hu <huyue2@coolpad.com>
Fri, 23 Sep 2022 02:11:22 +0000 (10:11 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Mon, 26 Sep 2022 15:55:39 +0000 (23:55 +0800)
commitb15b2e307c3a1970d92da77a3ef57ee53d119d8e
treee2fdea78f65addf0eb8af1abc4f3746897eddee1
parentfdffc091e6f94602558bba712b51bc16f79fd6d5
erofs: support on-disk compressed fragments data

Introduce on-disk compressed fragments data feature.

This approach adds a new field called `h_fragmentoff' in the per-file
compression header to indicate the fragment offset of each tail pcluster
or the whole file in the special packed inode.

Similar to ztailpacking, it will also find and record the 'headlcn'
of the tail pcluster when initializing per-inode zmap for making
follow-on requests more easy.

Signed-off-by: Yue Hu <huyue2@coolpad.com>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/YzHKxcFTlHGgXeH9@B-P7TQMD6M-0146.local
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
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