Re: [PATCH 4/6] btrfs: refactor btrfs_find_device() take fs_devices as argument

2019-01-17 Thread David Sterba
On Thu, Jan 17, 2019 at 11:32:31PM +0800, Anand Jain wrote: > btrfs_find_device() accepts fs_info as an argument and retrieves > fs_devices from fs_info. > > Instead send fs_devices, so that this function can be used in non > mounted (scanned) context as well. > > Signed-off-by: Anand Jain Revi

[PATCH 4/6] btrfs: refactor btrfs_find_device() take fs_devices as argument

2019-01-17 Thread Anand Jain
btrfs_find_device() accepts fs_info as an argument and retrieves fs_devices from fs_info. Instead send fs_devices, so that this function can be used in non mounted (scanned) context as well. Signed-off-by: Anand Jain --- fs/btrfs/dev-replace.c | 6 +++--- fs/btrfs/ioctl.c | 5 +++-- fs/