Re: [PATCH 3/5] btrfs: get device pointer from device_list_add()

2018-01-09 Thread Anand Jain
On 01/10/2018 12:13 AM, Josef Bacik wrote: On Tue, Jan 09, 2018 at 10:46:23PM +0800, Anand Jain wrote: Instead of pointer to btrfs_fs_devices from device_list_add() its better to get pointer to btrfs_device, then we have both, pointer to btrfs_device and btrfs_fs_devices. This is needed in

Re: [PATCH 3/5] btrfs: get device pointer from device_list_add()

2018-01-09 Thread Josef Bacik
On Tue, Jan 09, 2018 at 10:46:23PM +0800, Anand Jain wrote: > Instead of pointer to btrfs_fs_devices from device_list_add() its > better to get pointer to btrfs_device, then we have both, pointer > to btrfs_device and btrfs_fs_devices. This is needed in preparation > to add handling reappearing

[PATCH 3/5] btrfs: get device pointer from device_list_add()

2018-01-09 Thread Anand Jain
Instead of pointer to btrfs_fs_devices from device_list_add() its better to get pointer to btrfs_device, then we have both, pointer to btrfs_device and btrfs_fs_devices. This is needed in preparation to add handling reappearing missing device feature. Signed-off-by: Anand Jain