aboutsummaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorChristian Schwarz <[email protected]>2022-02-04 19:33:34 +0100
committerGitHub <[email protected]>2022-02-04 10:33:34 -0800
commitdb875800765a013cda9957af9e54c2c963b3cca1 (patch)
treedad071041cc2d2fc963cf3e53f04b6ed57bfd08c /module
parent100b8950f40c916fd1675696116eb66c6c56ff19 (diff)
dsl_dir_tempreserve_impl: remove unused `deferred` variable
The following commit moved the users of `deferred` into function dsl_pool_unreserved_space: commit d2734cce68cf740e015312314415f9034c67851c Author: Serapheim Dimitropoulos <[email protected]> Date: Fri Dec 16 14:11:29 2016 -0800 OpenZFS 9166 - zfs storage pool checkpoint Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Reviewed-by: George Melikov <[email protected]> Signed-off-by: Christian Schwarz <[email protected]> Closes #13056
Diffstat (limited to 'module')
-rw-r--r--module/zfs/dsl_dir.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/module/zfs/dsl_dir.c b/module/zfs/dsl_dir.c
index bd5e0c2f6..e4ff7d8e7 100644
--- a/module/zfs/dsl_dir.c
+++ b/module/zfs/dsl_dir.c
@@ -1322,7 +1322,6 @@ top_of_function:
* we're very close to full, this will allow a steady trickle of
* removes to get through.
*/
- uint64_t deferred = 0;
if (dd->dd_parent == NULL) {
uint64_t avail = dsl_pool_unreserved_space(dd->dd_pool,
(netfree) ?
@@ -1342,7 +1341,7 @@ top_of_function:
*/
if (used_on_disk + est_inflight >= quota) {
if (est_inflight > 0 || used_on_disk < quota ||
- (retval == ENOSPC && used_on_disk < quota + deferred))
+ (retval == ENOSPC && used_on_disk < quota))
retval = ERESTART;
dprintf_dd(dd, "failing: used=%lluK inflight = %lluK "
"quota=%lluK tr=%lluK err=%d\n",