* [PATCH] btrfs: pass 'verbose' parameter to btrfs_relocate_block_group
@ 2026-02-27 13:12 Johannes Thumshirn
2026-02-27 13:31 ` Damien Le Moal
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Johannes Thumshirn @ 2026-02-27 13:12 UTC (permalink / raw)
To: linux-btrfs; +Cc: Johannes Thumshirn
Function `btrfs_relocate_chunk()` always passes verbose=true to
`btrfs_relocate_block_group()` instead of the `verbose` parameter passed
into it by it's callers.
While user initiated rebalancing should be logged in the Kernel's log
buffer. This causes excessive log spamming from automatic rebalancing,
e.g. on zoned filesystems running low on usable space.
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
---
fs/btrfs/volumes.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index c0cf8f7c5a8e..95accc9361bd 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -3595,7 +3595,7 @@ int btrfs_relocate_chunk(struct btrfs_fs_info *fs_info, u64 chunk_offset, bool v
/* step one, relocate all the extents inside this chunk */
btrfs_scrub_pause(fs_info);
- ret = btrfs_relocate_block_group(fs_info, chunk_offset, true);
+ ret = btrfs_relocate_block_group(fs_info, chunk_offset, verbose);
btrfs_scrub_continue(fs_info);
if (ret) {
/*
--
2.53.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] btrfs: pass 'verbose' parameter to btrfs_relocate_block_group
2026-02-27 13:12 [PATCH] btrfs: pass 'verbose' parameter to btrfs_relocate_block_group Johannes Thumshirn
@ 2026-02-27 13:31 ` Damien Le Moal
2026-03-02 10:14 ` Qu Wenruo
2026-03-02 10:21 ` Filipe Manana
2 siblings, 0 replies; 4+ messages in thread
From: Damien Le Moal @ 2026-02-27 13:31 UTC (permalink / raw)
To: Johannes Thumshirn, linux-btrfs
On 2/27/26 22:12, Johannes Thumshirn wrote:
> Function `btrfs_relocate_chunk()` always passes verbose=true to
> `btrfs_relocate_block_group()` instead of the `verbose` parameter passed
> into it by it's callers.
>
> While user initiated rebalancing should be logged in the Kernel's log
> buffer. This causes excessive log spamming from automatic rebalancing,
> e.g. on zoned filesystems running low on usable space.
>
> Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
--
Damien Le Moal
Western Digital Research
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] btrfs: pass 'verbose' parameter to btrfs_relocate_block_group
2026-02-27 13:12 [PATCH] btrfs: pass 'verbose' parameter to btrfs_relocate_block_group Johannes Thumshirn
2026-02-27 13:31 ` Damien Le Moal
@ 2026-03-02 10:14 ` Qu Wenruo
2026-03-02 10:21 ` Filipe Manana
2 siblings, 0 replies; 4+ messages in thread
From: Qu Wenruo @ 2026-03-02 10:14 UTC (permalink / raw)
To: Johannes Thumshirn, linux-btrfs
在 2026/2/27 23:42, Johannes Thumshirn 写道:
> Function `btrfs_relocate_chunk()` always passes verbose=true to
> `btrfs_relocate_block_group()` instead of the `verbose` parameter passed
> into it by it's callers.
>
> While user initiated rebalancing should be logged in the Kernel's log
> buffer. This causes excessive log spamming from automatic rebalancing,
> e.g. on zoned filesystems running low on usable space.
>
> Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Thanks,
Qu
> ---
> fs/btrfs/volumes.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
> index c0cf8f7c5a8e..95accc9361bd 100644
> --- a/fs/btrfs/volumes.c
> +++ b/fs/btrfs/volumes.c
> @@ -3595,7 +3595,7 @@ int btrfs_relocate_chunk(struct btrfs_fs_info *fs_info, u64 chunk_offset, bool v
>
> /* step one, relocate all the extents inside this chunk */
> btrfs_scrub_pause(fs_info);
> - ret = btrfs_relocate_block_group(fs_info, chunk_offset, true);
> + ret = btrfs_relocate_block_group(fs_info, chunk_offset, verbose);
> btrfs_scrub_continue(fs_info);
> if (ret) {
> /*
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] btrfs: pass 'verbose' parameter to btrfs_relocate_block_group
2026-02-27 13:12 [PATCH] btrfs: pass 'verbose' parameter to btrfs_relocate_block_group Johannes Thumshirn
2026-02-27 13:31 ` Damien Le Moal
2026-03-02 10:14 ` Qu Wenruo
@ 2026-03-02 10:21 ` Filipe Manana
2 siblings, 0 replies; 4+ messages in thread
From: Filipe Manana @ 2026-03-02 10:21 UTC (permalink / raw)
To: Johannes Thumshirn; +Cc: linux-btrfs
On Fri, Feb 27, 2026 at 1:14 PM Johannes Thumshirn
<johannes.thumshirn@wdc.com> wrote:
>
> Function `btrfs_relocate_chunk()` always passes verbose=true to
> `btrfs_relocate_block_group()` instead of the `verbose` parameter passed
> into it by it's callers.
>
> While user initiated rebalancing should be logged in the Kernel's log
> buffer. This causes excessive log spamming from automatic rebalancing,
> e.g. on zoned filesystems running low on usable space.
>
> Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Looks good, thanks.
> ---
> fs/btrfs/volumes.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
> index c0cf8f7c5a8e..95accc9361bd 100644
> --- a/fs/btrfs/volumes.c
> +++ b/fs/btrfs/volumes.c
> @@ -3595,7 +3595,7 @@ int btrfs_relocate_chunk(struct btrfs_fs_info *fs_info, u64 chunk_offset, bool v
>
> /* step one, relocate all the extents inside this chunk */
> btrfs_scrub_pause(fs_info);
> - ret = btrfs_relocate_block_group(fs_info, chunk_offset, true);
> + ret = btrfs_relocate_block_group(fs_info, chunk_offset, verbose);
> btrfs_scrub_continue(fs_info);
> if (ret) {
> /*
> --
> 2.53.0
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-03-02 10:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-27 13:12 [PATCH] btrfs: pass 'verbose' parameter to btrfs_relocate_block_group Johannes Thumshirn
2026-02-27 13:31 ` Damien Le Moal
2026-03-02 10:14 ` Qu Wenruo
2026-03-02 10:21 ` Filipe Manana
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox