Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs: fix and simplify heuristic_collect_sample()
@ 2026-09-10  2:05 Qu Wenruo
  2026-09-10  2:05 ` [PATCH 1/2] btrfs: fix off-by-one end related to inode_need_compress() Qu Wenruo
  2026-09-10  2:05 ` [PATCH 2/2] btrfs: simplify heuristic_collect_sample() to handle large folios better Qu Wenruo
  0 siblings, 2 replies; 3+ messages in thread
From: Qu Wenruo @ 2026-09-10  2:05 UTC (permalink / raw)
  To: linux-btrfs

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

-- 
2.55.0


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

end of thread, other threads:[~2026-09-10  2:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-10  2:05 [PATCH 0/2] btrfs: fix and simplify heuristic_collect_sample() Qu Wenruo
2026-09-10  2:05 ` [PATCH 1/2] btrfs: fix off-by-one end related to inode_need_compress() Qu Wenruo
2026-09-10  2:05 ` [PATCH 2/2] btrfs: simplify heuristic_collect_sample() to handle large folios better Qu Wenruo

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