btrfs: make use of btrfs_find_device_by_user_input()
authorAnand Jain <anand.jain@oracle.com>
Sat, 13 Feb 2016 02:01:36 +0000 (10:01 +0800)
committerDavid Sterba <dsterba@suse.com>
Thu, 28 Apr 2016 08:59:13 +0000 (10:59 +0200)
commit24fc572fe456c02ff4136c07861a3edd4b8de683
treefb3f64e9892c4cb9832337dc51e596e7516be29e
parent24e0474b59538cdb9d2b7318ec7c7ae9f6faf85d
btrfs: make use of btrfs_find_device_by_user_input()

btrfs_rm_device() has a section of the code which can be replaced
btrfs_find_device_by_user_input()

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