Print this page
3955 ztest failure: assertion refcount_count(&tx->tx_space_written) + delta <= tx->tx_space_towrite
Reviewed by: Adam Leventhal <ahl@delphix.com>
Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>

@@ -3603,10 +3603,13 @@
         if (freeit)
                 dmu_tx_hold_free(tx, bigobj, bigoff, bigsize);
         else
                 dmu_tx_hold_write(tx, bigobj, bigoff, bigsize);
 
+        /* This accounts for setting the checksum/compression. */
+        dmu_tx_hold_bonus(tx, bigobj);
+
         txg = ztest_tx_assign(tx, TXG_MIGHTWAIT, FTAG);
         if (txg == 0) {
                 umem_free(packbuf, packsize);
                 umem_free(bigbuf, bigsize);
                 return;