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

Function abd_cmp

freebsd/contrib/openzfs/module/zfs/abd.c:999–1005  ·  view source on GitHub ↗

* Compares the contents of two ABDs. */

Source from the content-addressed store, hash-verified

997 * Compares the contents of two ABDs.
998 */
999int
1000abd_cmp(abd_t *dabd, abd_t *sabd)
1001{
1002 ASSERT3U(dabd->abd_size, ==, sabd->abd_size);
1003 return (abd_iterate_func2(dabd, sabd, 0, 0, dabd->abd_size,
1004 abd_cmp_cb, NULL));
1005}
1006
1007/*
1008 * Iterate over code ABDs and a data ABD and call @func_raidz_gen.

Callers 5

raidz_parity_verifyFunction · 0.85
zio_ddt_collisionFunction · 0.85
cmp_codeFunction · 0.85
cmp_dataFunction · 0.85

Calls 1

abd_iterate_func2Function · 0.85

Tested by 2

cmp_codeFunction · 0.68
cmp_dataFunction · 0.68