diff options
author | David Sterba <dsterba@suse.com> | 2016-02-15 18:00:26 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-04-28 11:59:13 +0300 |
commit | 3cc31a0d5bc77e35229671307eba5ea5c4c4cb9d (patch) | |
tree | 8d2351bcfb4f81b9e70112b6d8e4b0bfd997ecb5 /fs/btrfs/volumes.h | |
parent | f47ab2588e424cb4898b75ace1e2323ddd18b990 (diff) | |
download | linux-3cc31a0d5bc77e35229671307eba5ea5c4c4cb9d.tar.xz |
btrfs: pass number of devices to btrfs_check_raid_min_devices
Before this patch, btrfs_check_raid_min_devices would do an off-by-one
check of the constraints and not the miminmum check, as its name
suggests. This is not a problem if the only caller is device remove, but
would be confusing for others.
Add an argument with the exact number and let the caller(s) decide if
this needs any adjustments, like when device replace is running.
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Tested-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.h')
0 files changed, 0 insertions, 0 deletions