aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorDennis Zhou <dennis@kernel.org>2020-01-02 16:26:37 -0500
committerDavid Sterba <dsterba@suse.com>2020-01-20 16:40:59 +0100
commit4aa9ad520398bf9cef70fc9c363567da44312045 (patch)
tree77badf26527c9d58896c8d14f3f906109aff668d /fs/btrfs/ctree.h
parentbtrfs: add kbps discard rate limit for async discard (diff)
downloadlinux-dev-4aa9ad520398bf9cef70fc9c363567da44312045.tar.xz
linux-dev-4aa9ad520398bf9cef70fc9c363567da44312045.zip
btrfs: limit max discard size for async discard
Throttle the maximum size of a discard so that we can provide an upper bound for the rate of async discard. While the block layer is able to split discards into the appropriate sized discards, we want to be able to account more accurately the rate at which we are consuming NCQ slots as well as limit the upper bound of work for a discard. Reviewed-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Dennis Zhou <dennis@kernel.org> 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