Josef Bacik b0bbc8a3d4 btrfs: check correct bio in finish_compressed_bio_read
Commit c09abff87f90 ("btrfs: cloned bios must not be iterated by
bio_for_each_segment_all") added ASSERT()'s to make sure we weren't
calling bio_for_each_segment_all() on a RAID5/6 bio.  However it was
checking the bio that the compression code passed in, not the
cb->orig_bio that we actually iterate over, so adjust this ASSERT() to
check the correct bio.

Reviewed-by: Boris Burkov <boris@bur.io>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2022-03-14 13:13:51 +01:00
..
2021-09-02 09:21:27 -07:00
2022-03-14 13:13:51 +01: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
2022-03-14 13:13:51 +01: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