]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
btrfs: pass 'verbose' parameter to btrfs_relocate_block_group
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Fri, 27 Feb 2026 13:12:24 +0000 (14:12 +0100)
committerDavid Sterba <dsterba@suse.com>
Fri, 13 Mar 2026 11:47:35 +0000 (12:47 +0100)
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.

Reviewed-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c

index 3c37c5d2267bfdf768572b70d51c59df9e03d95b..7efc2f7a9bb280a3c729501ef6f384f2e5386f89 100644 (file)
@@ -3587,7 +3587,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) {
                /*