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

Function ddt_bp_fill

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

Source from the content-addressed store, hash-verified

259}
260
261void
262ddt_bp_fill(const ddt_phys_t *ddp, blkptr_t *bp, uint64_t txg)
263{
264 ASSERT(txg != 0);
265
266 for (int d = 0; d < SPA_DVAS_PER_BP; d++)
267 bp->blk_dva[d] = ddp->ddp_dva[d];
268 BP_SET_BIRTH(bp, txg, ddp->ddp_phys_birth);
269}
270
271/*
272 * The bp created via this function may be used for repairs and scrub, but it

Callers 4

ddt_bp_createFunction · 0.85
zio_ddt_collisionFunction · 0.85
zio_ddt_writeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected