* blist_fill() - mark a region in the block bitmap as off-limits * to the allocator (i.e. allocate it), ignoring any * existing allocations. Return the number of blocks * actually filled that were free before the call. */
| 345 | * actually filled that were free before the call. |
| 346 | */ |
| 347 | daddr_t |
| 348 | blist_fill(blist_t bl, daddr_t blkno, daddr_t count) |
| 349 | { |
| 350 | daddr_t filled; |
| 351 | |
| 352 | KASSERT(blkno >= 0 && blkno + count <= bl->bl_blocks, |
| 353 | ("filling invalid range: blkno %jx, count %d, blocks %jd", |
| 354 | (uintmax_t)blkno, (int)count, (uintmax_t)bl->bl_blocks)); |
| 355 | filled = blst_meta_fill(bl->bl_root, blkno, count, bl->bl_radix); |
| 356 | bl->bl_avail -= filled; |
| 357 | return (filled); |
| 358 | } |
| 359 | |
| 360 | /* |
| 361 | * blist_resize() - resize an existing radix tree to handle the |
no test coverage detected