From 19b2a2c71979f849cadc33af3577f739cc95e1f0 Mon Sep 17 00:00:00 2001 From: Dennis Zhou Date: Thu, 2 Jan 2020 16:26:38 -0500 Subject: 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 Reviewed-by: David Sterba Signed-off-by: David Sterba --- fs/btrfs/discard.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fs/btrfs/discard.h') 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, -- cgit v1.2.3