]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: fix devs_max constraints for raid1c3 and raid1c4
authorDavid Sterba <dsterba@suse.com>
Wed, 27 Nov 2019 15:10:54 +0000 (16:10 +0100)
committerDavid Sterba <dsterba@suse.com>
Fri, 13 Dec 2019 13:09:23 +0000 (14:09 +0100)
commitdb15edf55eb9cba60c6fba2388d5af75d93046e3
tree17c72be0e3dd750087a6b9e03843e3b61956d191
parentb4c513c2cda1f886843c285abc7c44a3f8d61526
btrfs: fix devs_max constraints for raid1c3 and raid1c4

The value 0 for devs_max means to spread the allocated chunks over all
available devices, eg. stripe for RAID0 or RAID5. This got mistakenly
copied to the RAID1C3/4 profiles. The intention is to have exactly 3 and
4 copies respectively.

Fixes: 3a764a095d31 ("btrfs: add support for 3-copy replication (raid1c3)")
Fixes: cb752209fe22 ("btrfs: add support for 4-copy replication (raid1c4)")
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c