diff options
author | Nikolay Borisov <nborisov@suse.com> | 2020-07-02 15:23:33 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-07-27 12:55:40 +0200 |
commit | 26056eab4bf7b7b1a690c0242bd1cc21e050349a (patch) | |
tree | 93dd9b9851b16a6397b58603f291539f7053e2b1 /fs | |
parent | 814723e0a55a9576b1d17f4fa8811086a24dd3e8 (diff) | |
download | linux-26056eab4bf7b7b1a690c0242bd1cc21e050349a.tar.gz linux-26056eab4bf7b7b1a690c0242bd1cc21e050349a.tar.bz2 linux-26056eab4bf7b7b1a690c0242bd1cc21e050349a.zip |
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: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/compression.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c index c2d5ca583dbf..db80c3fa6c08 100644 --- a/fs/btrfs/compression.c +++ b/fs/btrfs/compression.c @@ -244,7 +244,6 @@ static void end_compressed_bio_read(struct bio *bio) * Record the correct mirror_num in cb->orig_bio so that * read-repair can work properly. */ - ASSERT(btrfs_io_bio(cb->orig_bio)); btrfs_io_bio(cb->orig_bio)->mirror_num = mirror; cb->mirror_num = mirror; |