]> git.proxmox.com Git - mirror_zfs.git/blobdiff - module/zfs/dbuf.c
Change os->os_next_write_raw to work per txg
[mirror_zfs.git] / module / zfs / dbuf.c
index 87b9ba46153802f45bd801aa01b383c0ab853ec4..3668ea31533c672ec232e465a71e1e0f58e061e2 100644 (file)
@@ -2218,6 +2218,7 @@ dmu_buf_will_change_crypt_params(dmu_buf_t *db_fake, dmu_tx_t *tx)
        ASSERT3P(dr, !=, NULL);
        ASSERT3U(dr->dr_txg, ==, tx->tx_txg);
        dr->dt.dl.dr_raw = B_TRUE;
+       db->db_objset->os_next_write_raw[tx->tx_txg & TXG_MASK] = B_TRUE;
 }
 
 #pragma weak dmu_buf_fill_done = dbuf_fill_done