diff options
author | Christian Schwarz <[email protected]> | 2022-02-04 19:33:34 +0100 |
---|---|---|
committer | Tony Hutter <[email protected]> | 2022-02-16 17:58:55 -0800 |
commit | a61915e08687b70654290df7088928f42f829aea (patch) | |
tree | 88ce80ac4d1ccef856c877260eef960cb3b1ba31 /module/zfs | |
parent | 765be3600603656aedb20ad6b0ad2f2ed5261cb9 (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/zfs')
-rw-r--r-- | module/zfs/dsl_dir.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/module/zfs/dsl_dir.c b/module/zfs/dsl_dir.c index 84caace4d..110134145 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", |