Skip to content

erofs: support tail-packing inline compressed data

Gao Xiang linux-erofs lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest5 patches 2 repliesIn review
  2. v35 patches 8 repliesSuperseded

Changes in v4 from the cover letter

- add comments about z_erofs_lz4_decompress_ctx (Chao);
- move cache_strategy together with preload_compressed_pages (Yue);
- remove duplicated code about z_idata_size (Yue);
- rename z_idata_headlcn to z_tailextent_headlcn since EROFS_GET_BLOCKS_FINDTAIL is a generic flag which is not only used for tail pcluster (Yue).

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5erofs: tidy up z_erofs_lz4_decompressfs/erofs/decompressor.c+44 -390 replies
2/5erofs: introduce z_erofs_fixup_insizefs/erofs/compress.h fs/erofs/decompressor.c fs/erofs/decompressor_lzma.c+36 -210 replies
3/5erofs: support unaligned data decompressionfs/erofs/decompressor.c+9 -81 reply
4/5erofs: support inline data decompressionfs/erofs/zdata.c fs/erofs/zdata.h+115 -482 replies
5/5erofs: add on-disk compressed tail-packing inline supportfs/erofs/erofs_fs.h fs/erofs/internal.h fs/erofs/super.c +2 more+103 -311 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchChao Yu
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/5] erofs: support tail-packing inline compressed data

Hi folks,

v2: https://lore.kernel.org/r/[email protected]
mkfs v8: https://lore.kernel.org/r/[email protected]

This is the 4th version of tail-packing inline compressed data feature. It tries to inline the tail pcluster right after the inode metadata to save data I/O and storage space.

Take Linux 5.10.87 source code as an example:
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

Thanks,
Gao Xiang

changes since v3:
- add comments about z_erofs_lz4_decompress_ctx (Chao);
- move cache_strategy together with preload_compressed_pages (Yue);
- remove duplicated code about z_idata_size (Yue);
- rename z_idata_headlcn to z_tailextent_headlcn since EROFS_GET_BLOCKS_FINDTAIL is a generic flag which is not only used for tail pcluster (Yue).

Gao Xiang (3):
erofs: tidy up z_erofs_lz4_decompress
erofs: introduce z_erofs_fixup_insize
erofs: support unaligned data decompression

Yue Hu (2):
erofs: support inline data decompression
erofs: add on-disk compressed tail-packing inline support

 fs/erofs/compress.h          |   4 +-
 fs/erofs/decompressor.c      | 132 +++++++++++++++++++--------------
 fs/erofs/decompressor_lzma.c |  19 ++---
 fs/erofs/erofs_fs.h          |  10 ++-
 fs/erofs/internal.h          |   6 ++
 fs/erofs/super.c             |   3 +
 fs/erofs/sysfs.c             |   2 +
 fs/erofs/zdata.c             | 139 +++++++++++++++++++++++------------
 fs/erofs/zdata.h             |  24 +++++-
 fs/erofs/zmap.c              | 113 ++++++++++++++++++++--------
 10 files changed, 306 insertions(+), 146 deletions(-)
Signature · 1 line
2.24.4