Skip to content

Commit

Permalink
Issue openzfs#4116. Move dmu_tx_get_txg after dmu_tx_assign.
Browse files Browse the repository at this point in the history
  • Loading branch information
ab-oe committed Sep 8, 2017
1 parent 1db97a9 commit fe7fd87
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion module/zfs/zvol.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,6 @@ zvol_update_volsize(uint64_t volsize, objset_t *os)
uint64_t txg;

tx = dmu_tx_create(os);
txg = dmu_tx_get_txg(tx);
dmu_tx_hold_zap(tx, ZVOL_ZAP_OBJ, TRUE, NULL);
dmu_tx_mark_netfree(tx);
error = dmu_tx_assign(tx, TXG_WAIT);
Expand Down

0 comments on commit fe7fd87

Please sign in to comment.