[RFC PATCH v2 0/2] erofs-utils: compression inline feature

Yue Hu huyue2 at yulong.com
Fri Oct 29 16:49:29 AEDT 2021


Now, we only support tail-end inline data for uncompressed file. We should
also support it for compressed file to further decrease tail extent I/O and
save more space. That is original intention as well from Xiang.

Note that tail pcluster data is compressed by 4KB in this patch, which looks
like inefficent. As Xiang mentioned, there is another better way to handle it.
This patch is just using 4KB compression policy, we may improve it next.

Thanks.

Yue Hu (2):
  erofs-utils: support tail-packing inline compressed data
  erofs-utils: fuse: support tail-packing inline compressed data

 include/erofs/internal.h |   4 ++
 include/erofs_fs.h       |  10 ++-
 lib/compress.c           |  76 ++++++++++++++++++-----
 lib/compressor.c         |   9 +--
 lib/decompress.c         |   7 ++-
 lib/inode.c              |  40 ++++++------
 lib/zmap.c               | 130 ++++++++++++++++++++++++++++++++++++---
 mkfs/main.c              |   6 ++
 8 files changed, 228 insertions(+), 54 deletions(-)

-- 
2.29.0





More information about the Linux-erofs mailing list