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

Function ztest_create_cb_data

freebsd/contrib/openzfs/cmd/ztest/ztest.c:5488–5500  ·  view source on GitHub ↗

Allocate and initialize callback data structure */

Source from the content-addressed store, hash-verified

5486
5487/* Allocate and initialize callback data structure */
5488static ztest_cb_data_t *
5489ztest_create_cb_data(objset_t *os, uint64_t txg)
5490{
5491 ztest_cb_data_t *cb_data;
5492
5493 cb_data = umem_zalloc(sizeof (ztest_cb_data_t), UMEM_NOFAIL);
5494
5495 cb_data->zcd_txg = txg;
5496 cb_data->zcd_spa = dmu_objset_spa(os);
5497 list_link_init(&cb_data->zcd_node);
5498
5499 return (cb_data);
5500}
5501
5502/*
5503 * Commit callback test.

Callers 1

Calls 3

umem_zallocFunction · 0.85
dmu_objset_spaFunction · 0.85
list_link_initFunction · 0.50

Tested by

no test coverage detected