btrfs: don't dump stripe-tree on lookup error
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Wed, 31 Jul 2024 20:43:03 +0000 (22:43 +0200)
committerDavid Sterba <dsterba@suse.com>
Tue, 10 Sep 2024 14:51:17 +0000 (16:51 +0200)
This just creates unnecessary noise and doesn't provide any insights into
debugging RAID stripe-tree related issues.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
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/raid-stripe-tree.c

index bd06ff7..c1c74f3 100644 (file)
@@ -284,8 +284,6 @@ out:
        if (ret > 0)
                ret = -ENOENT;
        if (ret && ret != -EIO && !stripe->is_scrub) {
-               if (IS_ENABLED(CONFIG_BTRFS_DEBUG))
-                       btrfs_print_tree(leaf, 1);
                btrfs_err(fs_info,
                "cannot find raid-stripe for logical [%llu, %llu] devid %llu, profile %s",
                          logical, logical + *length, stripe->dev->devid,