]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1d7a57552c36afd7fd7306f0b0738199dde668e4
tree219e167b6ea01081d5e2e333c35ef0a1497e4e83
parent817e8c3d6052dad58cc38edce29572da09b32116
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