]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: cleanup assigning next active device with a check
authorAnand Jain <anand.jain@oracle.com>
Tue, 3 May 2016 09:44:43 +0000 (17:44 +0800)
committerDavid Sterba <dsterba@suse.com>
Wed, 4 May 2016 08:41:08 +0000 (10:41 +0200)
commit7eec62b29ac0828242e91de9888039a957cfa9d3
treebcb38903c2ae7e890fcc752f2ff3cd6a162025c3
parentbfdfd49e96a3cc24bcbcda461887d0a3d35750c8
btrfs: cleanup assigning next active device with a check

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 <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/dev-replace.c
fs/btrfs/volumes.c
fs/btrfs/volumes.h