btrfs: use raid_attr table in get_profile_num_devs
authorDavid Sterba <dsterba@suse.com>
Fri, 17 May 2019 09:43:20 +0000 (11:43 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 1 Jul 2019 11:34:56 +0000 (13:34 +0200)
commit9fa02ac75ba14683b341ec7430202cccfc8c3fab
tree6b174c6df52e323bfee99551ea245e116b0f8af3
parentc8bf1b67039556884d0532f7b06acd524c90ed87
btrfs: use raid_attr table in get_profile_num_devs

The dev_max constraints are defined in the raid_attr table, use it
instead of open-coding it.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c