]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2ba89e0adce1dc70b97dd71f860bed51bfba99c4
treec47825bdce10aad01921cd45e702566db11ed03f
parent96e74431d860bc892fd9fb2feb925b5ebf2f8797
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