btrfs: open code btrfs_init_dev_replace_tgtdev_for_resume()
authorAnand Jain <anand.jain@oracle.com>
Mon, 12 Feb 2018 15:36:25 +0000 (23:36 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Mar 2018 13:09:30 +0000 (15:09 +0200)
commit15fc1283f631552ffedebd14e4fd5a36438e7d2a
treec47825bdce10aad01921cd45e702566db11ed03f
parent18e67c73dc6ea5bc5d9591abf92f8841290c4fcc
btrfs: open code btrfs_init_dev_replace_tgtdev_for_resume()

btrfs_init_dev_replace_tgtdev_for_resume() initializes replace
target device in a few simple steps, so do it at the parent function.
Moreover, there isn't any other caller so just open code it.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/dev-replace.c
fs/btrfs/volumes.c
fs/btrfs/volumes.h