mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 19:04:45 +03:00
Fix TXG_MASK cstyle
Fix style issue for 'tx->tx_txg&TXG_MASK'. There should be white space around the '&' character. Split the dnode_reallocate() ASSERT to make it more readable to clearly separate the checks. Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Tom Caputi <tcaputi@datto.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #8606
This commit is contained in:
@@ -1168,10 +1168,10 @@ dsl_dir_sync(dsl_dir_t *dd, dmu_tx_t *tx)
|
||||
ASSERT(dmu_tx_is_syncing(tx));
|
||||
|
||||
mutex_enter(&dd->dd_lock);
|
||||
ASSERT0(dd->dd_tempreserved[tx->tx_txg&TXG_MASK]);
|
||||
ASSERT0(dd->dd_tempreserved[tx->tx_txg & TXG_MASK]);
|
||||
dprintf_dd(dd, "txg=%llu towrite=%lluK\n", tx->tx_txg,
|
||||
dd->dd_space_towrite[tx->tx_txg&TXG_MASK] / 1024);
|
||||
dd->dd_space_towrite[tx->tx_txg&TXG_MASK] = 0;
|
||||
dd->dd_space_towrite[tx->tx_txg & TXG_MASK] / 1024);
|
||||
dd->dd_space_towrite[tx->tx_txg & TXG_MASK] = 0;
|
||||
mutex_exit(&dd->dd_lock);
|
||||
|
||||
/* release the hold from dsl_dir_dirty */
|
||||
|
||||
Reference in New Issue
Block a user