btrfs: factor out RAID1 block mapping
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Wed, 13 Dec 2023 14:42:59 +0000 (06:42 -0800)
committerDavid Sterba <dsterba@suse.com>
Fri, 15 Dec 2023 22:03:58 +0000 (23:03 +0100)
commit5e36aba8377b78b4ec8e15d29a1dee0d626d735d
tree499699d8aaf7496fda9e8cd00d0ccfbf9534e2de
parent30e8534b538e8e7372e49516a8cddacdfd80f863
btrfs: factor out RAID1 block mapping

Now that we have a container for the I/O geometry that has all the needed
information for the block mappings of RAID1, factor out a helper calculating
this information.

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