btrfs: create helper function __check_raid_min_devices()
authorAnand Jain <anand.jain@oracle.com>
Sat, 13 Feb 2016 02:01:33 +0000 (10:01 +0800)
committerDavid Sterba <dsterba@suse.com>
Thu, 28 Apr 2016 08:59:13 +0000 (10:59 +0200)
commitf1fa7f264250f2cb60119aca3fd114c3f47070c2
tree6e153fa78b7d53b7425dd15152663dd8e5d1fb73
parent6cf86a006be9f2a77434d5a06ea289719815ad7c
btrfs: create helper function __check_raid_min_devices()

move a section of btrfs_rm_device() code to check for min number of the
devices into the function __check_raid_min_devices()

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c