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

Function ddt_phys_fill

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

Source from the content-addressed store, hash-verified

310}
311
312void
313ddt_phys_fill(ddt_phys_t *ddp, const blkptr_t *bp)
314{
315 ASSERT(ddp->ddp_phys_birth == 0);
316
317 for (int d = 0; d < SPA_DVAS_PER_BP; d++)
318 ddp->ddp_dva[d] = bp->blk_dva[d];
319 ddp->ddp_phys_birth = BP_PHYSICAL_BIRTH(bp);
320}
321
322void
323ddt_phys_clear(ddt_phys_t *ddp)

Callers 2

zio_ddt_writeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected