diff options
author | Dennis Zhou <dennis@kernel.org> | 2020-01-02 16:26:38 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-01-20 16:40:59 +0100 |
commit | 19b2a2c71979f849cadc33af3577f739cc95e1f0 (patch) | |
tree | d39430f1c2faac2d4bb1a5207ff05f0b73a541c6 /fs/btrfs/ctree.h | |
parent | 4aa9ad520398bf9cef70fc9c363567da44312045 (diff) | |
download | linux-19b2a2c71979f849cadc33af3577f739cc95e1f0.tar.bz2 |
btrfs: make max async discard size tunable
Expose max_discard_size as a tunable via sysfs and switch the current
fixed maximum to the default value.
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')
-rw-r--r-- | fs/btrfs/ctree.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index f58b1cfeeca6..fa6c95fdf5c6 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -469,6 +469,7 @@ struct btrfs_discard_ctl { u64 prev_discard; atomic_t discardable_extents; atomic64_t discardable_bytes; + u64 max_discard_size; unsigned long delay; u32 iops_limit; u32 kbps_limit; |