| 243 | } bpobj_info_t; |
| 244 | |
| 245 | static bpobj_info_t * |
| 246 | bpi_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. |
no outgoing calls
no test coverage detected