Btrfs: introduce a function to get extra mirror from replace
commit5ab56090b8824c79748931f322f71da1d702fa08
authorLiu Bo <bo.li.liu@oracle.com>
Tue, 14 Mar 2017 20:33:57 +0000 (14 13:33 -0700)
committerDavid Sterba <dsterba@suse.com>
Tue, 18 Apr 2017 12:07:24 +0000 (18 14:07 +0200)
treed83ea8f0083c4744e1da310f894e454cc39a3b6c
parent0b3d4cd371edb6c4ef47f3fb0cb55bdd9aa471c1
Btrfs: introduce a function to get extra mirror from replace

As the part of getting extra mirror in __btrfs_map_block is
independent, this puts it into a separate function.

Reviewed-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c