]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: don't check for btrfs_device::bdev in btrfs_end_bio
authorNikolay Borisov <nborisov@suse.com>
Thu, 2 Jul 2020 12:23:31 +0000 (15:23 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 27 Jul 2020 10:55:40 +0000 (12:55 +0200)
commit378135dc01dbe4604ce9d5305b78b81ac1a4a541
tree72faea16da3e69bf4bba99aeb225312bf15f9360
parent8c549b4c90eed6f2d2ff2d8f790d3e4ad93a1bad
btrfs: don't check for btrfs_device::bdev in btrfs_end_bio

btrfs_map_bio ensures that all submitted bios to devices have valid
btrfs_device::bdev so this check can be removed from btrfs_end_bio. This
check was added in june 2012 7de5a339db89 ("Btrfs: don't count I/O
statistic read errors for missing devices") but then in October of the
same year another commit d680ea9e9eba ("Btrfs: recheck bio against
block device when we map the bio") started checking for the presence of
btrfs_device::bdev before actually issuing the bio.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c