Re: [PATCH 2/3] btrfs: add helper btrfs_num_devices() to deduce num_devices

2018-07-15 Thread Anand Jain
On 07/13/2018 07:17 PM, Nikolay Borisov wrote: On 13.07.2018 14:17, Anand Jain wrote: On 07/12/2018 03:31 PM, Nikolay Borisov wrote: On 10.07.2018 21:22, Anand Jain wrote: When the replace is running the fs_devices::num_devices also includes the replace device, however in some

Re: [PATCH 2/3] btrfs: add helper btrfs_num_devices() to deduce num_devices

2018-07-13 Thread Nikolay Borisov
On 13.07.2018 14:17, Anand Jain wrote: > > > On 07/12/2018 03:31 PM, Nikolay Borisov wrote: >> >> >> On 10.07.2018 21:22, Anand Jain wrote: >>> When the replace is running the fs_devices::num_devices also includes >>> the replace device, however in some operations like device delete and >>>

Re: [PATCH 2/3] btrfs: add helper btrfs_num_devices() to deduce num_devices

2018-07-13 Thread Anand Jain
On 07/12/2018 03:31 PM, Nikolay Borisov wrote: On 10.07.2018 21:22, Anand Jain wrote: When the replace is running the fs_devices::num_devices also includes the replace device, however in some operations like device delete and balance it needs the actual num_devices without the repalce

Re: [PATCH 2/3] btrfs: add helper btrfs_num_devices() to deduce num_devices

2018-07-12 Thread Nikolay Borisov
On 10.07.2018 21:22, Anand Jain wrote: > When the replace is running the fs_devices::num_devices also includes > the replace device, however in some operations like device delete and > balance it needs the actual num_devices without the repalce devices, so > now the function btrfs_num_devices()

[PATCH 2/3] btrfs: add helper btrfs_num_devices() to deduce num_devices

2018-07-10 Thread Anand Jain
When the replace is running the fs_devices::num_devices also includes the replace device, however in some operations like device delete and balance it needs the actual num_devices without the repalce devices, so now the function btrfs_num_devices() just provides that. Signed-off-by: Anand Jain