* blist_free() - free up space in the block bitmap. Return the base * of a contiguous region. */
| 328 | * of a contiguous region. |
| 329 | */ |
| 330 | void |
| 331 | blist_free(blist_t bl, daddr_t blkno, daddr_t count) |
| 332 | { |
| 333 | |
| 334 | KASSERT(blkno >= 0 && blkno + count <= bl->bl_blocks, |
| 335 | ("freeing invalid range: blkno %jx, count %d, blocks %jd", |
| 336 | (uintmax_t)blkno, (int)count, (uintmax_t)bl->bl_blocks)); |
| 337 | blst_meta_free(bl->bl_root, blkno, count, bl->bl_radix); |
| 338 | bl->bl_avail += count; |
| 339 | } |
| 340 | |
| 341 | /* |
| 342 | * blist_fill() - mark a region in the block bitmap as off-limits |
no test coverage detected