commit | 9c170b2644610a62b107c12a007e065d4456798d | [log] [tgz] |
---|---|---|
author | Zhao Lei <zhaolei@cn.fujitsu.com> | Tue Sep 15 21:08:08 2015 +0800 |
committer | David Sterba <dsterba@suse.com> | Wed Oct 21 18:28:48 2015 +0200 |
tree | 3c041e94ba9021168868ebfa80d221cd501182d8 | |
parent | 8789f4fe608922f484369382a8e507ca12df7f4e [diff] |
btrfs: use btrfs_raid_array in btrfs_reduce_alloc_profile btrfs_raid_array[] holds attributes of all raid types. Use btrfs_raid_array[].devs_min is best way for request in btrfs_reduce_alloc_profile(), instead of use complex condition of each raid types. Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>