public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs: be less verbose on automatic bg reclaim
@ 2025-07-08  6:55 Johannes Thumshirn
  2025-07-08  6:55 ` [PATCH 1/2] btrfs: remove redundant auto reclaim log message Johannes Thumshirn
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Johannes Thumshirn @ 2025-07-08  6:55 UTC (permalink / raw)
  To: linux-btrfs; +Cc: Johannes Thumshirn

From: Johannes Thumshirn <johannes.thumshirn@wdc.com>

BTRFS filesystems with active automatic block-group reclaim (this
especially hits zoned file systems where automatic block-group reclaim is
used for garbage collection) do a lot of log spamming, because every
relocated block group is accompanied by three prints at info level.

The first patch removes the info message that is only present with
automatic block group reclaim, we have a tracepoint right next to it so
there's no need for the message at all.

The second patch introduces a `verbose` parameter for
`btrfs_relocate_chunk()` and `btrfs_relocate_block_group()` to control if
we want to add printks or not. Automatic reclaim calls into
`btrfs_relocate_chunk()` setting `verbose` to false while the user-space
triggered balance code path sets `verbose` to true retaining the old
behaviour. 

Johannes Thumshirn (2):
  btrfs: remove redundant auto reclaim log message
  btrfs: don't print relocation messages from auto reclaim

 fs/btrfs/block-group.c |  8 +-------
 fs/btrfs/relocation.c  | 12 ++++++++----
 fs/btrfs/relocation.h  |  3 ++-
 fs/btrfs/volumes.c     | 14 ++++++++------
 fs/btrfs/volumes.h     |  3 ++-
 5 files changed, 21 insertions(+), 19 deletions(-)

-- 
2.50.0


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

end of thread, other threads:[~2025-07-08 16:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-08  6:55 [PATCH 0/2] btrfs: be less verbose on automatic bg reclaim Johannes Thumshirn
2025-07-08  6:55 ` [PATCH 1/2] btrfs: remove redundant auto reclaim log message Johannes Thumshirn
2025-07-08  6:55 ` [PATCH 2/2] btrfs: don't print relocation messages from auto reclaim Johannes Thumshirn
2025-07-08 16:01 ` [PATCH 0/2] btrfs: be less verbose on automatic bg reclaim Boris Burkov

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