btrfs: use raid_attr to get allowed profiles for balance conversion
authorDavid Sterba <dsterba@suse.com>
Fri, 17 May 2019 09:43:27 +0000 (11:43 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 1 Jul 2019 11:34:56 +0000 (13:34 +0200)
commit081db89b13cb26f9ef1f5b1752f7fcb775191cbe
tree219e167b6ea01081d5e2e333c35ef0a1497e4e83
parentfc9a2ac77c05ba060dcfb084a752aa3ee37f9e2a
btrfs: use raid_attr to get allowed profiles for balance conversion

Iterate over the table and gather all allowed profiles for a given
number of devices, instead of open coding.

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