From: Sun YangKai <sunk67188@gmail.com>
To: linux-btrfs@vger.kernel.org
Cc: Sun YangKai <sunk67188@gmail.com>
Subject: [PATCH v2 0/7] btrfs: fix periodic reclaim condition with some cleanup
Date: Sat, 3 Jan 2026 20:19:47 +0800 [thread overview]
Message-ID: <20260103122504.10924-2-sunk67188@gmail.com> (raw)
This series eliminates wasteful periodic reclaim operations that were occurring
when already failed to reclaim any new space, and includes several preparatory
cleanups.
Patch 1 fixes the core issue.
Patch 2-7 are cleanup with no functional change.
Details are in commit messages.
Changes from v1:
- First fix then cleanup, adviced by Qu Wenruo <quwenruo.btrfs@gmx.com>
Sun YangKai (7):
btrfs: fix periodic reclaim condition
btrfs: use u8 for reclaim threshold type
btrfs: clarify reclaim sweep control flow
btrfs: change block group reclaim_mark to bool
btrfs: reorder btrfs_block_group members to reduce struct size
btrfs: use proper types for btrfs_block_group fields
btrfs: consolidate reclaim readiness checks in btrfs_should_reclaim()
fs/btrfs/block-group.c | 29 ++++++++++-----------
fs/btrfs/block-group.h | 22 ++++++++++------
fs/btrfs/space-info.c | 58 ++++++++++++++++++++----------------------
fs/btrfs/space-info.h | 40 ++++++++++++++++++-----------
fs/btrfs/sysfs.c | 3 ++-
5 files changed, 82 insertions(+), 70 deletions(-)
--
2.51.2
next reply other threads:[~2026-01-03 13:06 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-03 12:19 Sun YangKai [this message]
2026-01-03 12:19 ` [PATCH v2 1/7] btrfs: fix periodic reclaim condition Sun YangKai
2026-01-04 19:40 ` Boris Burkov
2026-01-05 13:00 ` Sun Yangkai
2026-01-05 18:21 ` Boris Burkov
2026-01-07 14:09 ` Sun Yangkai
2026-01-07 17:57 ` Boris Burkov
2026-01-08 15:11 ` Sun Yangkai
2026-01-03 12:19 ` [PATCH v2 2/7] btrfs: use u8 for reclaim threshold type Sun YangKai
2026-01-03 12:19 ` [PATCH v2 3/7] btrfs: clarify reclaim sweep control flow Sun YangKai
2026-01-03 12:19 ` [PATCH v2 4/7] btrfs: change block group reclaim_mark to bool Sun YangKai
2026-01-03 12:19 ` [PATCH v2 5/7] btrfs: reorder btrfs_block_group members to reduce struct size Sun YangKai
2026-01-05 15:07 ` Filipe Manana
2026-01-05 15:26 ` Sun Yangkai
2026-01-03 12:19 ` [PATCH v2 6/7] btrfs: use proper types for btrfs_block_group fields Sun YangKai
2026-01-03 12:19 ` [PATCH v2 7/7] btrfs: consolidate reclaim readiness checks in btrfs_should_reclaim() Sun YangKai
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=20260103122504.10924-2-sunk67188@gmail.com \
--to=sunk67188@gmail.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