[PATCH v8 0/2] erofs-utils: support tail-packing inline compressed data

Gao Xiang hsiangkao at linux.alibaba.com
Fri Dec 24 12:23:16 AEDT 2021


Hi folks,

v7: https://lore.kernel.org/r/20211221094321.108367-1-hsiangkao@linux.alibaba.com

This is a follow-up of previous v6 Yue Hu's patchset. It implements
tail-packing inline for compressed files. In particular, called
tail pcluster inline.

Here is some evaluation of Linux 5.10.87 source code (75368 inodes):
linux-5.10.87 (erofs, uncompressed)		972570624

linux-5.10.87 (erofs, lz4hc,9 4k tailpacking)	391696384
linux-5.10.87 (erofs, lz4hc,9 8k tailpacking)	368807936
linux-5.10.87 (erofs, lz4hc,9 16k tailpacking)	345649152

linux-5.10.87 (erofs, lz4hc,9 4k vanilla)	416079872
linux-5.10.87 (erofs, lz4hc,9 8k vanilla)	395493376
linux-5.10.87 (erofs, lz4hc,9 16k vanilla)	383213568

Usage:
mkfs.erofs -zlz4hc -Eztailpacking foo.erofs.img foo/

Thanks,
Gao Xiang

changes since v7:
 - slightly change inblocks condition to !(final && len == count)

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

 include/erofs/config.h   |   1 +
 include/erofs/internal.h |   6 ++
 include/erofs_fs.h       |  10 +++-
 lib/compress.c           | 122 ++++++++++++++++++++++++++++++---------
 lib/compressor.c         |  14 +++--
 lib/compressor.h         |   2 +-
 lib/decompress.c         |   5 +-
 lib/inode.c              |  55 +++++++++++++-----
 lib/namei.c              |   2 +-
 lib/zmap.c               | 101 ++++++++++++++++++++++++--------
 mkfs/main.c              |   8 +++
 11 files changed, 249 insertions(+), 77 deletions(-)

-- 
2.24.4


More information about the Linux-erofs mailing list