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

Function txg_list_create

freebsd/contrib/openzfs/module/zfs/txg.c:823–835  ·  view source on GitHub ↗

* Per-txg object lists. */

Source from the content-addressed store, hash-verified

821 * Per-txg object lists.
822 */
823void
824txg_list_create(txg_list_t *tl, spa_t *spa, size_t offset)
825{
826 int t;
827
828 mutex_init(&tl->tl_lock, NULL, MUTEX_DEFAULT, NULL);
829
830 tl->tl_offset = offset;
831 tl->tl_spa = spa;
832
833 for (t = 0; t < TXG_SIZE; t++)
834 tl->tl_head[t] = NULL;
835}
836
837static boolean_t
838txg_list_empty_impl(txg_list_t *tl, uint64_t txg)

Callers 3

vdev_alloc_commonFunction · 0.85
dsl_pool_open_implFunction · 0.85
spa_activateFunction · 0.85

Calls 1

mutex_initFunction · 0.50

Tested by

no test coverage detected