| 259 | } |
| 260 | |
| 261 | static void |
| 262 | zap_leaf_array_free(zap_leaf_t *l, uint16_t *chunkp) |
| 263 | { |
| 264 | uint16_t chunk = *chunkp; |
| 265 | |
| 266 | *chunkp = CHAIN_END; |
| 267 | |
| 268 | while (chunk != CHAIN_END) { |
| 269 | int nextchunk = ZAP_LEAF_CHUNK(l, chunk).l_array.la_next; |
| 270 | ASSERT3U(ZAP_LEAF_CHUNK(l, chunk).l_array.la_type, ==, |
| 271 | ZAP_CHUNK_ARRAY); |
| 272 | zap_leaf_chunk_free(l, chunk); |
| 273 | chunk = nextchunk; |
| 274 | } |
| 275 | } |
| 276 | |
| 277 | /* array_len and buf_len are in integers, not bytes */ |
| 278 | static void |
no test coverage detected