Qu Wenruo 9a4ffa1bd6 btrfs: unify the error handling of btrfs_read_buffer()
There is one oddball error handling of btrfs_read_buffer():

	ret = btrfs_read_buffer(tmp, gen, parent_level - 1, &first_key);
	if (!ret) {
		*eb_ret = tmp;
		return 0;
	}
	free_extent_buffer(tmp);
	btrfs_release_path(p);
	return -EIO;

While all other call sites check the error first.  Unify the behavior.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2022-03-14 13:13:53 +01:00
..
2021-09-02 09:21:27 -07:00
2022-01-07 14:18:23 +01:00
2021-06-22 14:11:57 +02:00
2022-03-14 13:13:51 +01:00
2021-06-22 14:11:57 +02:00
2022-01-07 14:18:26 +01:00
2021-11-08 16:55:21 -08:00