diff options
author | Boris Burkov <boris@bur.io> | 2023-04-05 22:43:59 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2023-04-21 01:28:23 +0300 |
commit | ef9cddfe57d86aac6b509b550136395669159b30 (patch) | |
tree | 72e4fd47b24fa913534935b50244ba081fa92389 /include/linux/fsnotify.h | |
parent | e9f59429b87d35cf23ae9ca19629bd686a1c0304 (diff) | |
download | linux-ef9cddfe57d86aac6b509b550136395669159b30.tar.xz |
btrfs: reinterpret async discard iops_limit=0 as no delay
Currently, a limit of 0 results in a hard coded metering over 6 hours.
Since the default is a set limit, I suspect no one truly depends on this
rather arbitrary setting. Repurpose it for an arguably more useful
"unlimited" mode, where the delay is 0.
Note that if block groups are too new, or go fully empty, there is still
a delay associated with those conditions. Those delays implement
heuristics for not trimming a region we are relatively likely to fully
overwrite soon.
CC: stable@vger.kernel.org # 6.2+
Reviewed-by: Neal Gompa <neal@gompa.dev>
Signed-off-by: Boris Burkov <boris@bur.io>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'include/linux/fsnotify.h')
0 files changed, 0 insertions, 0 deletions