]> 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)
commit61fd067cbed1c373f9b4fe465ca87d29b4fda0ff
treebcb38903c2ae7e890fcc752f2ff3cd6a162025c3
parent5fe80725705d507b173b50ade0edfcd1b213cdf5
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