btrfs: create helper btrfs_find_device_by_user_input()
authorAnand Jain <anand.jain@oracle.com>
Sat, 13 Feb 2016 02:01:35 +0000 (10:01 +0800)
committerDavid Sterba <dsterba@suse.com>
Thu, 28 Apr 2016 08:59:13 +0000 (10:59 +0200)
commit24e0474b59538cdb9d2b7318ec7c7ae9f6faf85d
tree6003a14ab7655ca8b965486dd500ec50c2194606
parentbd45ffbcb1f082e3c5a0bd56b1d7310d8b707ffb
btrfs: create helper btrfs_find_device_by_user_input()

The patch renames btrfs_dev_replace_find_srcdev() to
btrfs_find_device_by_user_input() and moves it to volumes.c, so that
delete device can use it.

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