Skip to content

btrfs: get rid of compressed_bio::compressed_folios[] part 1

Qu Wenruo linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3btrfs: use folio_iter to handle lzo_decompress_bio()fs/btrfs/lzo.c+39 -90 replies
2/3btrfs: use folio_iter to handle zlib_decompress_bio()fs/btrfs/zlib.c+12 -70 replies
3/3btrfs: use folio_iter to handle zstd_decompress_bio()fs/btrfs/zstd.c+9 -40 replies

Reviews trailers per patch

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

PatchDavid Sterba
SeriesR-b
1/3
2/3
3/3

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/3] btrfs: get rid of compressed_bio::compressed_folios[] part 1

Currently we have compressed_bio::compressed_folios[] allowing us to do random access to any compressed folio, then we queue all folios in that array into a real btrfs_bio, and submit that btrfs_bio for read/write.

However there is not really any need to do random access of that array.

All compression/decompression is doing sequential folio access.

The part 1 is some easy and safe conversion on decompression path.

The part 2 will handle the compression part, but unfortunately that will require some changes all compression path, thus will need some extra work.

And only after compression paths also got converted, we still need that compressed_folios[] array for now.

Qu Wenruo (3):
btrfs: use folio_iter to handle lzo_decompress_bio()
btrfs: use folio_iter to handle zlib_decompress_bio()
btrfs: use folio_iter to handle zstd_decompress_bio()

 fs/btrfs/lzo.c  | 48 +++++++++++++++++++++++++++++++++++++++---------
 fs/btrfs/zlib.c | 19 ++++++++++++-------
 fs/btrfs/zstd.c | 13 +++++++++----
 3 files changed, 60 insertions(+), 20 deletions(-)
Signature · 1 line
2.52.0