MCPcopy Create free account
hub / github.com/F-Stack/f-stack / blist_free

Function blist_free

freebsd/kern/subr_blist.c:330–339  ·  view source on GitHub ↗

* blist_free() - free up space in the block bitmap. Return the base * of a contiguous region. */

Source from the content-addressed store, hash-verified

328 * of a contiguous region.
329 */
330void
331blist_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

Callers 5

blist_resizeFunction · 0.85
blst_copyFunction · 0.85
mainFunction · 0.85
swp_pager_freeswapspaceFunction · 0.85
swaponsomethingFunction · 0.85

Calls 1

blst_meta_freeFunction · 0.85

Tested by

no test coverage detected