From: Qu Wenruo <wqu@suse.com>
To: linux-btrfs@vger.kernel.org
Subject: [PATCH 0/2] btrfs: fix and simplify heuristic_collect_sample()
Date: Thu, 10 Sep 2026 11:35:51 +0930 [thread overview]
Message-ID: <cover.1789003160.git.wqu@suse.com> (raw)
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
next reply other threads:[~2026-09-10 2:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-10 2:05 Qu Wenruo [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1789003160.git.wqu@suse.com \
--to=wqu@suse.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox