[PATCH] btrfs: cleanup assigning next active device with a check

2016-05-03 Thread Anand Jain
Creates helper fucntion as needed by the device delete and replace operations. Also now it checks if the next device being assigned is an active device. Signed-off-by: Anand Jain --- v3: fix compile warning, use ASSERT, minor comment update, based on for-next v2: added

Re: [PATCH] btrfs: cleanup assigning next active device with a check

2016-05-01 Thread Anand Jain
On 04/25/2016 11:15 PM, David Sterba wrote: On Mon, Apr 18, 2016 at 07:25:52PM +0800, Anand Jain wrote: Creates helper fucntion as needed by the device delete and replace operations. Also now it checks if the next device being assigned is an active device. Signed-off-by: Anand Jain

Re: [PATCH] btrfs: cleanup assigning next active device with a check

2016-04-25 Thread David Sterba
On Mon, Apr 18, 2016 at 07:25:52PM +0800, Anand Jain wrote: > Creates helper fucntion as needed by the device delete > and replace operations. Also now it checks if the next > device being assigned is an active device. > > Signed-off-by: Anand Jain > ---

[PATCH] btrfs: cleanup assigning next active device with a check

2016-04-18 Thread Anand Jain
Creates helper fucntion as needed by the device delete and replace operations. Also now it checks if the next device being assigned is an active device. Signed-off-by: Anand Jain --- fs/btrfs/dev-replace.c | 8 +++- fs/btrfs/volumes.c | 51

[PATCH] btrfs: cleanup assigning next active device with a check

2016-04-18 Thread Anand Jain
Creates helper function as needed by the device delete and replace operations. Also now it checks if the next device being assigned is an active device. Signed-off-by: Anand Jain Reported-by: Yauhen Kharuzhy --- fs/btrfs/dev-replace.c | 8