> @@ -498,6 +511,17 @@ dsl_pool_sync(dsl_pool_t *dp, uint64_t txg)
>       dsl_pool_undirty_space(dp, dp->dp_dirty_pertxg[txg & TXG_MASK], txg);
>  
>       /*
> +      * Update the long range free counters after
> +      * we're done syncing user data
> +      */
> +     if (spa_sync_pass(dp->dp_spa) == 1) {
> +             mutex_enter(&dp->dp_lock);
> +             dp->dp_long_freeing_total -= dp->dp_long_free_dirty_total;

Wouldn't the "dp_long_free_dirty_total" need to be specific to this txg?

---
Reply to this email directly or view it on GitHub:
https://github.com/openzfs/openzfs/pull/61/files#r51761498
_______________________________________________
developer mailing list
developer@open-zfs.org
http://lists.open-zfs.org/mailman/listinfo/developer

Reply via email to