| 315 | } |
| 316 | |
| 317 | static void |
| 318 | tidbatch_process(struct tidbatch *tb) |
| 319 | { |
| 320 | |
| 321 | KASSERT(tb->n <= nitems(tb->tab), |
| 322 | ("%s: count too high %d", __func__, tb->n)); |
| 323 | if (tb->n == nitems(tb->tab)) { |
| 324 | tid_free_batch(tb->tab, tb->n); |
| 325 | tb->n = 0; |
| 326 | } |
| 327 | } |
| 328 | |
| 329 | static void |
| 330 | tidbatch_final(struct tidbatch *tb) |
no test coverage detected