Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs: properly enable compressed readahead for bs < ps and large folio cases
@ 2026-04-26  7:51 Qu Wenruo
  2026-04-26  7:51 ` [PATCH 1/2] btrfs: enable cross-folio " Qu Wenruo
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Qu Wenruo @ 2026-04-26  7:51 UTC (permalink / raw)
  To: linux-btrfs

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(-)

-- 
2.53.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-04-28  3:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-26  7:51 [PATCH 0/2] btrfs: properly enable compressed readahead for bs < ps and large folio cases Qu Wenruo
2026-04-26  7:51 ` [PATCH 1/2] btrfs: enable cross-folio " Qu Wenruo
2026-04-27 13:21   ` David Sterba
2026-04-27 21:54     ` Qu Wenruo
2026-04-28  3:53       ` David Sterba
2026-04-26  7:51 ` [PATCH 2/2] btrfs: refresh add_ra_bio_pages() to indicate it's using folios Qu Wenruo
2026-04-27 13:37   ` David Sterba
2026-04-27 13:38 ` [PATCH 0/2] btrfs: properly enable compressed readahead for bs < ps and large folio cases David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox