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>
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 */