diff options
author | Prakash Surya <[email protected]> | 2021-02-24 09:52:43 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2021-02-24 09:52:43 -0800 |
commit | f01eaed4556623b63c414fee9085ae27d457fe46 (patch) | |
tree | a52e58d845bc1fb05d14e5d5c25d441f2c1fcde9 /include | |
parent | 5156862960fad12d7f9c8b57c01419c2875d7566 (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.h | 9 |
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, |