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

Function bplist_append

freebsd/contrib/openzfs/module/zfs/bplist.c:45–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45void
46bplist_append(bplist_t *bpl, const blkptr_t *bp)
47{
48 bplist_entry_t *bpe = kmem_alloc(sizeof (*bpe), KM_SLEEP);
49
50 mutex_enter(&bpl->bpl_lock);
51 bpe->bpe_blk = *bp;
52 list_insert_tail(&bpl->bpl_list, bpe);
53 mutex_exit(&bpl->bpl_lock);
54}
55
56/*
57 * To aid debugging, we keep the most recently removed entry. This way if

Callers 7

bplist_append_cbFunction · 0.85
dsl_dataset_block_bornFunction · 0.85
dsl_dataset_block_killFunction · 0.85
dbuf_remap_implFunction · 0.85
dsl_livelist_iterateFunction · 0.85
livelist_track_new_cbFunction · 0.85
zio_freeFunction · 0.85

Calls 3

mutex_enterFunction · 0.85
mutex_exitFunction · 0.85
list_insert_tailFunction · 0.50

Tested by

no test coverage detected