summaryrefslogtreecommitdiff
path: root/fs/btrfs/volumes.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-02-15 18:00:26 +0300
committerDavid Sterba <dsterba@suse.com>2016-04-28 11:59:13 +0300
commit3cc31a0d5bc77e35229671307eba5ea5c4c4cb9d (patch)
tree8d2351bcfb4f81b9e70112b6d8e4b0bfd997ecb5 /fs/btrfs/volumes.h
parentf47ab2588e424cb4898b75ace1e2323ddd18b990 (diff)
downloadlinux-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