]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: raid56: use in_range where applicable
authorNikolay Borisov <nborisov@suse.com>
Thu, 2 Jul 2020 13:46:45 +0000 (16:46 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 27 Jul 2020 10:55:41 +0000 (12:55 +0200)
commit588cbbdf52180b10ceb3197312a18bf4f55e7164
tree7b8d3f46542c82d98a20938d3ea60a52f34e6a59
parent2380e57c305a1a37b1ec4391a5eec1b5b7c43177
btrfs: raid56: use in_range where applicable

While at it use the opportunity to simplify find_logical_bio_stripe by
reducing the scope of 'stripe_start' variable and squash the
sector-to-bytes conversion on one line.

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