summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
authorNaohiro Aota <naohiro.aota@wdc.com>2020-02-25 04:56:15 +0100
committerDavid Sterba <dsterba@suse.com>2020-03-23 17:01:49 +0100
commit6aafb3038454bf137463f2c2096065ba9a452ccc (patch)
treead35458dfc86b7e197688de9452173131af5a184 /fs/btrfs/extent-tree.c
parentbtrfs: factor out create_chunk() (diff)
downloadlinux-6aafb3038454bf137463f2c2096065ba9a452ccc.tar.xz
linux-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 '')
0 files changed, 0 insertions, 0 deletions