| 394 | } |
| 395 | |
| 396 | static void |
| 397 | zap_increment_num_entries(zap_t *zap, int delta, dmu_tx_t *tx) |
| 398 | { |
| 399 | dmu_buf_will_dirty(zap->zap_dbuf, tx); |
| 400 | mutex_enter(&zap->zap_f.zap_num_entries_mtx); |
| 401 | ASSERT(delta > 0 || zap_f_phys(zap)->zap_num_entries >= -delta); |
| 402 | zap_f_phys(zap)->zap_num_entries += delta; |
| 403 | mutex_exit(&zap->zap_f.zap_num_entries_mtx); |
| 404 | } |
| 405 | |
| 406 | static uint64_t |
| 407 | zap_allocate_blocks(zap_t *zap, int nblocks) |
no test coverage detected