| 341 | } |
| 342 | |
| 343 | void |
| 344 | ddt_phys_free(ddt_t *ddt, ddt_key_t *ddk, ddt_phys_t *ddp, uint64_t txg) |
| 345 | { |
| 346 | blkptr_t blk; |
| 347 | |
| 348 | ddt_bp_create(ddt->ddt_checksum, ddk, ddp, &blk); |
| 349 | |
| 350 | /* |
| 351 | * We clear the dedup bit so that zio_free() will actually free the |
| 352 | * space, rather than just decrementing the refcount in the DDT. |
| 353 | */ |
| 354 | BP_SET_DEDUP(&blk, 0); |
| 355 | |
| 356 | ddt_phys_clear(ddp); |
| 357 | zio_free(ddt->ddt_spa, txg, &blk); |
| 358 | } |
| 359 | |
| 360 | ddt_phys_t * |
| 361 | ddt_phys_select(const ddt_entry_t *dde, const blkptr_t *bp) |
no test coverage detected