]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: use raid_attr table to find profiles for integrity lowering
authorDavid Sterba <dsterba@suse.com>
Fri, 17 May 2019 09:43:29 +0000 (11:43 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 1 Jul 2019 11:34:57 +0000 (13:34 +0200)
commit6939bd2a9819f58e2ff51f73f0a11e836952b677
tree6351e4bb7109aced1f2d208bbdf0fe02ef340775
parentfe90fd5c94b6024f916deb5e345a6cf9957f30c2
btrfs: use raid_attr table to find profiles for integrity lowering

Replace open coded list of the profiles by selecting them from the
raid_attr table. The criteria are now more explicit, we need profiles
that have more than 1 copy of the data or can reconstruct the data with
a missing device.

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