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

Function bpi_alloc

freebsd/contrib/openzfs/module/zfs/bpobj.c:245–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243} bpobj_info_t;
244
245static bpobj_info_t *
246bpi_alloc(bpobj_t *bpo, bpobj_info_t *parent, uint64_t index)
247{
248 bpobj_info_t *bpi = kmem_zalloc(sizeof (bpobj_info_t), KM_SLEEP);
249 bpi->bpi_bpo = bpo;
250 bpi->bpi_parent = parent;
251 bpi->bpi_index = index;
252 if (bpo->bpo_havesubobj && bpo->bpo_phys->bpo_subobjs != 0) {
253 bpi->bpi_unprocessed_subobjs = bpo->bpo_phys->bpo_num_subobjs;
254 }
255 return (bpi);
256}
257
258/*
259 * Update bpobj and all of its parents with new space accounting.

Callers 2

bpobj_iterate_implFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected