Skip to content

btrfs: properly enable compressed readahead for bs < ps and large folio cases

Qu Wenruo linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: enable cross-folio readahead for bs < ps and large folio casesfs/btrfs/compression.c+6 -253 replies
2/2btrfs: refresh add_ra_bio_pages() to indicate it's using foliosfs/btrfs/compression.c+20 -201 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] btrfs: properly enable compressed readahead for bs < ps and large folio cases

Compressed data readahead is disabled for bs < ps cases, but it has never taken large folios into the consideration.

And that unexpectedly enables compressed data readahead for large folios, which should go through the same subpage routine.

This means for real bs < ps cases compressed data read is disabled, but still enabled for bs == ps with large folios.

This small series will properly enable the compressed readahead for both bs < ps and large folios cases, mostly by simply remove the unnecessary checks.

Then since we're here, also update the function name and comments to reflect that we're already using folio interface, not the old page interface.

Qu Wenruo (2):
btrfs: enable cross-folio readahead for bs < ps and large folio cases
btrfs: refresh add_ra_bio_pages() to indicate it's using folios

 fs/btrfs/compression.c | 67 +++++++++++++++---------------------------
 1 file changed, 24 insertions(+), 43 deletions(-)
Signature · 1 line
2.53.0