Re: [PATCH 3/3] btrfs: use btrfs_raid_array in btrfs_reduce_alloc_profile

2015-09-22 Thread David Sterba
On Tue, Sep 15, 2015 at 09:08:08PM +0800, Zhao Lei wrote: > 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. > > Signed-off-by: Zhao Lei Re

[PATCH 3/3] btrfs: use btrfs_raid_array in btrfs_reduce_alloc_profile

2015-09-15 Thread Zhao Lei
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. Signed-off-by: Zhao Lei --- fs/btrfs/extent-tree.c | 48 ++