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

Function zfs_refcount_create

freebsd/contrib/openzfs/module/zfs/refcount.c:58–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58void
59zfs_refcount_create(zfs_refcount_t *rc)
60{
61 mutex_init(&rc->rc_mtx, NULL, MUTEX_DEFAULT, NULL);
62 list_create(&rc->rc_list, sizeof (reference_t),
63 offsetof(reference_t, ref_link));
64 list_create(&rc->rc_removed, sizeof (reference_t),
65 offsetof(reference_t, ref_link));
66 rc->rc_count = 0;
67 rc->rc_removed_count = 0;
68 rc->rc_tracked = reference_tracking_enable;
69}
70
71void
72zfs_refcount_create_tracked(zfs_refcount_t *rc)

Callers 15

abd_alloc_zero_scatterFunction · 0.85
abd_alloc_zero_scatterFunction · 0.85
zfsctl_snapshot_allocFunction · 0.85
dmu_zfetch_stream_createFunction · 0.85
dmu_tx_hold_dnode_implFunction · 0.85
abd_allocFunction · 0.85
abd_alloc_linearFunction · 0.85
abd_alloc_gang_abdFunction · 0.85
abd_get_offset_implFunction · 0.85
abd_get_from_bufFunction · 0.85

Calls 2

mutex_initFunction · 0.50
list_createFunction · 0.50

Tested by

no test coverage detected