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

Function ddt_phys_free

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

Source from the content-addressed store, hash-verified

341}
342
343void
344ddt_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
360ddt_phys_t *
361ddt_phys_select(const ddt_entry_t *dde, const blkptr_t *bp)

Callers 1

ddt_sync_entryFunction · 0.85

Calls 3

ddt_bp_createFunction · 0.85
ddt_phys_clearFunction · 0.85
zio_freeFunction · 0.85

Tested by

no test coverage detected