aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPrakash Surya <[email protected]>2021-02-24 09:52:43 -0800
committerGitHub <[email protected]>2021-02-24 09:52:43 -0800
commitf01eaed4556623b63c414fee9085ae27d457fe46 (patch)
treea52e58d845bc1fb05d14e5d5c25d441f2c1fcde9 /include
parent5156862960fad12d7f9c8b57c01419c2875d7566 (diff)
Add upper bound for slop space calculation
This change modifies the behavior of how we determine how much slop space to use in the pool, such that now it has an upper limit. The default upper limit is 128G, but is configurable via a tunable. Reviewed-by: Matthew Ahrens <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Prakash Surya <[email protected]> Closes #11023
Diffstat (limited to 'include')
-rw-r--r--include/sys/dsl_synctask.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/sys/dsl_synctask.h b/include/sys/dsl_synctask.h
index 0bb602e8f..5a5b30641 100644
--- a/include/sys/dsl_synctask.h
+++ b/include/sys/dsl_synctask.h
@@ -41,10 +41,11 @@ typedef void (dsl_sigfunc_t)(void *, dmu_tx_t *);
typedef enum zfs_space_check {
/*
- * Normal space check: if there is less than 3.2% free space,
- * the operation will fail. Operations which are logically
- * creating things should use this (e.g. "zfs create", "zfs snapshot").
- * User writes (via the ZPL / ZVOL) also fail at this point.
+ * Normal space check: if there is less than 3.2% free space (bounded
+ * by spa_max_slop), the operation will fail. Operations which are
+ * logically creating things should use this (e.g. "zfs create", "zfs
+ * snapshot"). User writes (via the ZPL / ZVOL) also fail at this
+ * point.
*/
ZFS_SPACE_CHECK_NORMAL,