aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/discard.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/discard.h')
-rw-r--r--fs/btrfs/discard.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/discard.h b/fs/btrfs/discard.h
index f9445ee5dcc3..21a15776dac4 100644
--- a/fs/btrfs/discard.h
+++ b/fs/btrfs/discard.h
@@ -11,6 +11,11 @@ struct btrfs_block_group;
/* Discard size limits */
#define BTRFS_ASYNC_DISCARD_DEFAULT_MAX_SIZE (SZ_64M)
+#define BTRFS_ASYNC_DISCARD_MAX_FILTER (SZ_1M)
+#define BTRFS_ASYNC_DISCARD_MIN_FILTER (SZ_32K)
+
+/* List operations */
+void btrfs_discard_check_filter(struct btrfs_block_group *block_group, u64 bytes);
/* Work operations */
void btrfs_discard_cancel_work(struct btrfs_discard_ctl *discard_ctl,