Skip to content

btrfs: fix and simplify heuristic_collect_sample()

Qu Wenruo linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: fix off-by-one end related to inode_need_compress()fs/btrfs/compression.c fs/btrfs/inode.c+11 -90 replies
2/2btrfs: simplify heuristic_collect_sample() to handle large folios betterfs/btrfs/compression.c+16 -240 replies

Reviews trailers per patch

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

PatchBoris Burkov
SeriesR-b
1/2
2/2

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/2] btrfs: fix and simplify heuristic_collect_sample()

The first one fixes an off-by-one problem related to inode_need_compress() and heuristic_collect_sample(). Thankfully that off-by-one is not causing any real problems.

The second one enhances heuristic_collect_sample() to handle large folios in a more efficient way, inspired by the recent cleanup from Tal.

Qu Wenruo (2):
btrfs: fix off-by-one end related to inode_need_compress()
btrfs: simplify heuristic_collect_sample() to handle large folios
better

 fs/btrfs/compression.c | 51 +++++++++++++++++-------------------------
 fs/btrfs/inode.c       |  5 ++++-
 2 files changed, 25 insertions(+), 31 deletions(-)
Signature · 1 line
2.55.0