summaryrefslogtreecommitdiff
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2020-11-04 09:45:51 +0000
committerDavid Sterba <dsterba@suse.com>2020-12-08 15:54:05 +0100
commite50404a8a6997f9c0d412fa21f07a0da8e3891a2 (patch)
tree2a45b09fbbd942b99d2facee1dce5384ef810900 /fs/btrfs/ctree.h
parent480a8ec83b179da1c484133b0f687090e89b00c5 (diff)
downloadlwn-e50404a8a6997f9c0d412fa21f07a0da8e3891a2.tar.gz
lwn-e50404a8a6997f9c0d412fa21f07a0da8e3891a2.zip
btrfs: discard: speed up async discard up to iops_limit
Instead of using iops_limit only for cutting off extremes, calculate the discard delay directly from it, so it closely follows iops_limit and doesn't under-discard even though quotas are not saturated. The iops limit could be hit more often in some cases and could increase the discard rate. Reviewed-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
0 files changed, 0 insertions, 0 deletions