btrfs: merge btrfs_find_device and find_device
mainline inclusion from mainline-v5.1-rc7 commit 09ba3bc9 category: bugfix bugzilla: 13690 CVE: CVE-2019-18885 ------------------------------------------------- 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: NAnand Jain <anand.jain@oracle.com> Reviewed-by: NDavid Sterba <dsterba@suse.com> Signed-off-by: NDavid Sterba <dsterba@suse.com> Conflicts: fs/btrfs/volumes.c [yyl adjust context] Signed-off-by: NYang Yingliang <yangyingliang@huawei.com> Reviewed-by: NYi Zhang <yi.zhang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录