Enhance a dmu_tx_dirty_buf() assertion
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 12 Mar 2012 19:38:00 +0000 (12:38 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 23 Mar 2012 19:24:05 +0000 (12:24 -0700)
commit99ea23c583b272470a21e0ac7caa1f485f6b1125
treec497a3c47ba27dce48f14ba87754671f0d3cf5f6
parent4b5d425f14673bfb228699cbafca7609cf30a7da
Enhance a dmu_tx_dirty_buf() assertion

The following assertion is good to validate the correctness of
new DMU consumers, but it doesn't quite provide enough information.
Slightly rework the assertion so that when it is hit the actual
offending values will be included in the output.

  SPLError: 4787:0:(dmu_tx.c:828:dmu_tx_dirty_buf())
  ASSERTION(dn == NULL || dn->dn_assigned_txg == tx->tx_txg) failed

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
module/zfs/dmu_tx.c