diff options
author | Dennis Zhou <dennis@kernel.org> | 2020-01-02 22:26:38 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-01-20 16:40:59 +0100 |
commit | 19b2a2c71979f849cadc33af3577f739cc95e1f0 (patch) | |
tree | d39430f1c2faac2d4bb1a5207ff05f0b73a541c6 /fs/btrfs/discard.h | |
parent | btrfs: limit max discard size for async discard (diff) | |
download | linux-19b2a2c71979f849cadc33af3577f739cc95e1f0.tar.xz linux-19b2a2c71979f849cadc33af3577f739cc95e1f0.zip |
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/discard.h')
-rw-r--r-- | fs/btrfs/discard.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/discard.h b/fs/btrfs/discard.h index 562c60fab77a..f9445ee5dcc3 100644 --- a/fs/btrfs/discard.h +++ b/fs/btrfs/discard.h @@ -10,7 +10,7 @@ struct btrfs_discard_ctl; struct btrfs_block_group; /* Discard size limits */ -#define BTRFS_ASYNC_DISCARD_MAX_SIZE (SZ_64M) +#define BTRFS_ASYNC_DISCARD_DEFAULT_MAX_SIZE (SZ_64M) /* Work operations */ void btrfs_discard_cancel_work(struct btrfs_discard_ctl *discard_ctl, |