From db01402ebb515632afa6366bd9be11809400449f Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Wed, 2 Feb 2022 16:44:13 +0000 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 Signed-off-by: Christian Schwarz --- 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 bd5e0c2f627c..e4ff7d8e754f 100644 --- a/module/zfs/dsl_dir.c +++ b/module/zfs/dsl_dir.c @@ -1322,7 +1322,6 @@ dsl_dir_tempreserve_impl(dsl_dir_t *dd, uint64_t asize, boolean_t netfree, * 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 @@ dsl_dir_tempreserve_impl(dsl_dir_t *dd, uint64_t asize, boolean_t netfree, */ 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",