]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Mon, 15 Feb 2016 16:57:35 +0000 (17:57 +0100)
commitd58e4f573486b42b4505c4d19d5163dc5a591caa
tree1c78da2f8d5cace8235fb4af4fe6347527e8a0cf
parent7870f31d036002d5880b65ff8cc745a01619af1b
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