summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorNaohiro Aota <naohiro.aota@wdc.com>2020-02-25 12:56:15 +0900
committerDavid Sterba <dsterba@suse.com>2020-03-23 17:01:49 +0100
commit6aafb3038454bf137463f2c2096065ba9a452ccc (patch)
treead35458dfc86b7e197688de9452173131af5a184 /arch
parentdce580ca403a3e99806a39d54bcb0ad631dee01f (diff)
downloadlinux-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