From ab92184ff8f12979f3d3dd5ed601ed85770d81ba Mon Sep 17 00:00:00 2001 From: Yue Hu Date: Tue, 28 Dec 2021 13:46:04 +0800 Subject: erofs: add on-disk compressed tail-packing inline support Introduces erofs compressed tail-packing inline support. This approach adds a new field called `h_idata_size' in the per-file compression header to indicate the encoded size of each tail-packing pcluster. At runtime, it will find the start logical offset of the tail pcluster when initializing per-inode zmap and record such extent (headlcn, idataoff) information to the in-memory inode. Therefore, follow-on requests can directly recognize if one pcluster is a tail-packing inline pcluster or not. Link: https://lore.kernel.org/r/20211228054604.114518-6-hsiangkao@linux.alibaba.com Reviewed-by: Chao Yu Signed-off-by: Yue Hu Signed-off-by: Gao Xiang --- fs/erofs/sysfs.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fs/erofs/sysfs.c') diff --git a/fs/erofs/sysfs.c b/fs/erofs/sysfs.c index 666693432107..dac252bc9228 100644 --- a/fs/erofs/sysfs.c +++ b/fs/erofs/sysfs.c @@ -75,6 +75,7 @@ EROFS_ATTR_FEATURE(chunked_file); EROFS_ATTR_FEATURE(device_table); EROFS_ATTR_FEATURE(compr_head2); EROFS_ATTR_FEATURE(sb_chksum); +EROFS_ATTR_FEATURE(ztailpacking); static struct attribute *erofs_feat_attrs[] = { ATTR_LIST(zero_padding), @@ -84,6 +85,7 @@ static struct attribute *erofs_feat_attrs[] = { ATTR_LIST(device_table), ATTR_LIST(compr_head2), ATTR_LIST(sb_chksum), + ATTR_LIST(ztailpacking), NULL, }; ATTRIBUTE_GROUPS(erofs_feat); -- cgit v1.2.3-70-g09d2