diff options
author | Naohiro Aota <naohiro.aota@wdc.com> | 2020-02-25 12:56:15 +0900 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-03-23 17:01:49 +0100 |
commit | 6aafb3038454bf137463f2c2096065ba9a452ccc (patch) | |
tree | ad35458dfc86b7e197688de9452173131af5a184 /arch | |
parent | dce580ca403a3e99806a39d54bcb0ad631dee01f (diff) | |
download | linux-stable-6aafb3038454bf137463f2c2096065ba9a452ccc.tar.gz linux-stable-6aafb3038454bf137463f2c2096065ba9a452ccc.tar.bz2 linux-stable-6aafb3038454bf137463f2c2096065ba9a452ccc.zip |
btrfs: parameterize dev_extent_min for chunk allocation
Currently, we ignore a device whose available space is less than
"BTRFS_STRIPE_LEN * dev_stripes". This is a lower limit for current
allocation policy (to maximize the number of stripes). This commit
parameterizes dev_extent_min, so that other policies can set their own
lower limitat to ignore a device with insufficient space.
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions