MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ddt_phys_select

Function ddt_phys_select

freebsd/contrib/openzfs/module/zfs/ddt.c:360–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358}
359
360ddt_phys_t *
361ddt_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
373uint64_t
374ddt_phys_total_refcnt(const ddt_entry_t *dde)

Callers 4

zio_ddt_child_read_doneFunction · 0.85
zio_ddt_read_startFunction · 0.85
zio_ddt_freeFunction · 0.85
zdb_count_blockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected