btrfs: merge btrfs_find_device and find_device
authorAnand Jain <anand.jain@oracle.com>
Sat, 19 Jan 2019 06:48:55 +0000 (14:48 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Feb 2019 13:13:24 +0000 (14:13 +0100)
commit09ba3bc9dd150457c506e4661380a6183af651c1
tree01349e5790ff3dade04f8651ccc29330a036f74b
parent70bc7088aaedd7260fcdc18ecebc60881771acb3
btrfs: merge btrfs_find_device and find_device

Both btrfs_find_device() and find_device() does the same thing except
that the latter does not take the seed device onto account in the device
scanning context. We can merge them.

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