Skip to content

Commit 4f6abe9

Browse files
morbidrsakdave
authored andcommitted
btrfs: pass 'verbose' parameter to btrfs_relocate_block_group
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 <[email protected]> Reviewed-by: Qu Wenruo <[email protected]> Reviewed-by: Damien Le Moal <[email protected]> Signed-off-by: Johannes Thumshirn <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 0749cab commit 4f6abe9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/btrfs/volumes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3587,7 +3587,7 @@ int btrfs_relocate_chunk(struct btrfs_fs_info *fs_info, u64 chunk_offset, bool v
35873587

35883588
/* step one, relocate all the extents inside this chunk */
35893589
btrfs_scrub_pause(fs_info);
3590-
ret = btrfs_relocate_block_group(fs_info, chunk_offset, true);
3590+
ret = btrfs_relocate_block_group(fs_info, chunk_offset, verbose);
35913591
btrfs_scrub_continue(fs_info);
35923592
if (ret) {
35933593
/*

0 commit comments

Comments
 (0)