summaryrefslogtreecommitdiff
path: root/fs/btrfs/relocation.h
diff options
context:
space:
mode:
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>2025-07-08 08:55:03 +0200
committerDavid Sterba <dsterba@suse.com>2025-07-22 00:09:22 +0200
commit5ae011bcbb5ac088e5fa41fcaf3896fc866c0b9a (patch)
tree6f3de81d90cc1193d52884bafba91468ef23bf78 /fs/btrfs/relocation.h
parenta507904090d05904dda4fbcd3413e63c29d24057 (diff)
downloadlinux-next-5ae011bcbb5ac088e5fa41fcaf3896fc866c0b9a.tar.gz
linux-next-5ae011bcbb5ac088e5fa41fcaf3896fc866c0b9a.zip
btrfs: don't print relocation messages from auto reclaim
When BTRFS is doing automatic block-group reclaim, it is spamming the kernel log messages a lot. Add a 'verbose' parameter to btrfs_relocate_chunk() and btrfs_relocate_block_group() to control the verbosity of these log message. This way the old behaviour of printing log messages on a user-space initiated balance operation can be kept while excessive log spamming due to auto reclaim is mitigated. Reviewed-by: Boris Burkov <boris@bur.io> Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/relocation.h')
-rw-r--r--fs/btrfs/relocation.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/relocation.h b/fs/btrfs/relocation.h
index 788c86d8633a..5c36b3f84b57 100644
--- a/fs/btrfs/relocation.h
+++ b/fs/btrfs/relocation.h
@@ -12,7 +12,8 @@ struct btrfs_trans_handle;
struct btrfs_ordered_extent;
struct btrfs_pending_snapshot;
-int btrfs_relocate_block_group(struct btrfs_fs_info *fs_info, u64 group_start);
+int btrfs_relocate_block_group(struct btrfs_fs_info *fs_info, u64 group_start,
+ bool verbose);
int btrfs_init_reloc_root(struct btrfs_trans_handle *trans, struct btrfs_root *root);
int btrfs_update_reloc_root(struct btrfs_trans_handle *trans,
struct btrfs_root *root);