Skip to content

erofs: basic sub-page compressed data support

Gao Xiang linux-erofs lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5erofs: support I/O submission for sub-page compressed blocksfs/erofs/zdata.c+74 -821 reply
2/5erofs: record `pclustersize` in bytes instead of pagesfs/erofs/zdata.c+26 -380 replies
3/5erofs: fix up compacted indexes for block size < 4096fs/erofs/zmap.c+14 -180 replies
4/5erofs: refine z_erofs_transform_plain() for sub-page block supportfs/erofs/decompressor.c+48 -334 replies
5/5erofs: enable sub-page compressed block supportfs/erofs/inode.c fs/erofs/zdata.c+8 -40 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchYue HuChao Yu
SeriesR-b R-b
1/5
2/5
3/5
4/5
5/5

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

Read the v1 thread

Cover letter [PATCH 0/5] erofs: basic sub-page compressed data support

Hi folks,

Recently, there are two new cases so that we need to add a preliminary sub-page block support for compressed files;

- As Android folks requested, Android ecosystem itself is now switching to 16k page size for their arm64 devices. They needs an option of 4k-block image compatibility on their new 16k devices;

- Some arm64 cloud servers use 64k page size for their optimized workloads, but 4k-block EROFS container images need to be parsed too.

So this patchset mainly addresses the requirements above with a very very simple approach as a start: just allocate short-lived temporary buffers all the time to keep compressed data if sub-page blocks are identified. In other words, no inplace/cache decompression for the preliminary support.

This patchset survives EROFS stress test on my own testfarms.

Thanks,
Gao Xiang

Gao Xiang (5):
erofs: support I/O submission for sub-page compressed blocks
erofs: record pclustersize in bytes instead of pages
erofs: fix up compacted indexes for block size < 4096
erofs: refine z_erofs_transform_plain() for sub-page block support
erofs: enable sub-page compressed block support

 fs/erofs/decompressor.c |  81 +++++++++------
 fs/erofs/inode.c        |   6 +-
 fs/erofs/zdata.c        | 224 ++++++++++++++++++----------------------
 fs/erofs/zmap.c         |  32 +++---
 4 files changed, 169 insertions(+), 174 deletions(-)
Signature · 1 line
2.39.3