]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: merge calculations for simple striped profiles in btrfs_rmap_block
authorDavid Sterba <dsterba@suse.com>
Thu, 23 Jun 2022 14:57:02 +0000 (16:57 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Jul 2022 15:45:38 +0000 (17:45 +0200)
commitac0677348f3c2373183323f20ccfebe7cb00f9ab
treeb5a1b1284c18d2545ce2ba65dc8aebfa8246b38d
parentd09cb9e18845c7ba5864282c7cc13c3cabad04f0
btrfs: merge calculations for simple striped profiles in btrfs_rmap_block

Use the same expression for stripe_nr for RAID0 (map->sub_stripes is 1)
and RAID10 (map->sub_stripes is 2), with equivalent results.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/block-group.c