From a61915e08687b70654290df7088928f42f829aea Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Fri, 4 Feb 2022 19:33:34 +0100 Subject: [PATCH] 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 Date: Fri Dec 16 14:11:29 2016 -0800 OpenZFS 9166 - zfs storage pool checkpoint Reviewed-by: Brian Behlendorf Reviewed-by: Ryan Moeller Reviewed-by: George Melikov Signed-off-by: Christian Schwarz Closes #13056 --- module/zfs/dsl_dir.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/zfs/dsl_dir.c b/module/zfs/dsl_dir.c index 84caace4db..1101341451 100644 --- a/module/zfs/dsl_dir.c +++ b/module/zfs/dsl_dir.c @@ -1320,7 +1320,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) ? @@ -1340,7 +1339,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",