Commit 26056eab authored by Nikolay Borisov's avatar Nikolay Borisov Committed by David Sterba

btrfs: remove needless ASSERT check of orig_bio in end_compressed_bio_read

compressed_bio::orig_bio is always set in btrfs_submit_compressed_read
before any bio submission is performed. Since that function is always
called with a valid bio it renders the ASSERT unnecessary.
Reviewed-by: default avatarJosef Bacik <josef@toxicpanda.com>
Reviewed-by: default avatarJohannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: default avatarNikolay Borisov <nborisov@suse.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 814723e0
...@@ -244,7 +244,6 @@ static void end_compressed_bio_read(struct bio *bio) ...@@ -244,7 +244,6 @@ static void end_compressed_bio_read(struct bio *bio)
* Record the correct mirror_num in cb->orig_bio so that * Record the correct mirror_num in cb->orig_bio so that
* read-repair can work properly. * read-repair can work properly.
*/ */
ASSERT(btrfs_io_bio(cb->orig_bio));
btrfs_io_bio(cb->orig_bio)->mirror_num = mirror; btrfs_io_bio(cb->orig_bio)->mirror_num = mirror;
cb->mirror_num = mirror; cb->mirror_num = mirror;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment