| 358 | } |
| 359 | |
| 360 | ddt_phys_t * |
| 361 | ddt_phys_select(const ddt_entry_t *dde, const blkptr_t *bp) |
| 362 | { |
| 363 | ddt_phys_t *ddp = (ddt_phys_t *)dde->dde_phys; |
| 364 | |
| 365 | for (int p = 0; p < DDT_PHYS_TYPES; p++, ddp++) { |
| 366 | if (DVA_EQUAL(BP_IDENTITY(bp), &ddp->ddp_dva[0]) && |
| 367 | BP_PHYSICAL_BIRTH(bp) == ddp->ddp_phys_birth) |
| 368 | return (ddp); |
| 369 | } |
| 370 | return (NULL); |
| 371 | } |
| 372 | |
| 373 | uint64_t |
| 374 | ddt_phys_total_refcnt(const ddt_entry_t *dde) |
no outgoing calls
no test coverage detected