| 368 | } |
| 369 | |
| 370 | uint64_t |
| 371 | dsl_deadlist_alloc(objset_t *os, dmu_tx_t *tx) |
| 372 | { |
| 373 | if (spa_version(dmu_objset_spa(os)) < SPA_VERSION_DEADLISTS) |
| 374 | return (bpobj_alloc(os, SPA_OLD_MAXBLOCKSIZE, tx)); |
| 375 | return (zap_create(os, DMU_OT_DEADLIST, DMU_OT_DEADLIST_HDR, |
| 376 | sizeof (dsl_deadlist_phys_t), tx)); |
| 377 | } |
| 378 | |
| 379 | void |
| 380 | dsl_deadlist_free(objset_t *os, uint64_t dlobj, dmu_tx_t *tx) |
no test coverage detected