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

Function ddt_histogram_empty

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

Source from the content-addressed store, hash-verified

461}
462
463boolean_t
464ddt_histogram_empty(const ddt_histogram_t *ddh)
465{
466 const uint64_t *s = (const uint64_t *)ddh;
467 const uint64_t *s_end = (const uint64_t *)(ddh + 1);
468
469 while (s < s_end)
470 if (*s++ != 0)
471 return (B_FALSE);
472
473 return (B_TRUE);
474}
475
476void
477ddt_get_dedup_object_stats(spa_t *spa, ddt_object_t *ddo_total)

Callers 1

ddt_object_destroyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected