On Tue, Sep 15, 2015 at 09:08:07PM +0800, Zhao Lei wrote: > btrfs_raid_array[] is used to define all raid attributes, use it > to get tolerated_failures in btrfs_get_num_tolerated_disk_barrier_failures(), > instead of complex condition in function. > > It can make code simple and auto-support other possible raid-type in > future. > > Signed-off-by: Zhao Lei <zhaolei@xxxxxxxxxxxxxx> Reviewed-by: David Sterba <dsterba@xxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
