]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: raid56: remove redundant device check in rbio_add_io_page
authorNikolay Borisov <nborisov@suse.com>
Thu, 2 Jul 2020 13:46:42 +0000 (16:46 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 27 Jul 2020 10:55:41 +0000 (12:55 +0200)
commite658d91855bbdddf25f2c85e815b08e0dcbe3700
treed8be93758117ebf42f1423a3dd9a1cb21304747a
parent9cc5c6ef81d7504c2458525547cf9a5825f32d12
btrfs: raid56: remove redundant device check in rbio_add_io_page

The merging logic is always executed if the current stripe's device
is not missing. So there's no point in duplicating the check. Simply
remove it, while at it reduce the scope of the 'last_end' variable.
If the current stripe's device is missing we fail the stripe early on.

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>
fs/btrfs/raid56.c