]> git.hungrycats.org Git - linux/commitdiff
btrfs: remove duplicate error message when writing super blocks
authorFilipe Manana <fdmanana@suse.com>
Wed, 16 Sep 2026 16:36:11 +0000 (17:36 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 17 Sep 2026 16:20:48 +0000 (18:20 +0200)
If the total error count is greater the maximum allowed number of errors,
we print exactly the same error message twice. Remove one of the messages.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c

index 161a7b9bb27a5d85cb0ea344bd93a74b464fabdd..a8535e309b5760f1a10c6a718de761f9e6549bba 100644 (file)
@@ -4228,8 +4228,6 @@ int write_all_supers(struct btrfs_trans_handle *trans)
                        total_errors++;
        }
        if (unlikely(total_errors > max_errors)) {
-               btrfs_err(fs_info, "%d errors while writing supers",
-                         total_errors);
                mutex_unlock(&fs_info->fs_devices->device_list_mutex);
 
                /* FUA is masked off if unsupported and can't be the reason */