FreeBSD/sys/kern/subr_blist.c
/*
 * 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.
 */
mark a region in the block bitmap as off-limits
to the allocator , ignoring any
existing allocations.  Return the number of blocks
actually filled that were free before the call.
mark a region in the block bitmap as off - limits to the allocator ignoring any existing allocations . Return the number of blocks actually filled that were free before the call .
int
blist_fill(blist_t bl, daddr_t blkno, daddr_t count)
{
	int filled;
	if (bl) {
		if (bl->bl_radix == BLIST_BMAP_RADIX)
			filled = blst_leaf_fill(bl->bl_root, blkno, count);
		else
			filled = blst_meta_fill(bl->bl_root, blkno, count,
			    bl->bl_radix, bl->bl_skip, 0);
		bl->bl_free -= filled;
		return filled;
	} else
		return 0;
}
int blist_fill ( blist_t bl , daddr_t blkno , daddr_t count ) { int filled ; if ( bl ) { if ( bl -> bl_radix == BLIST_BMAP_RADIX ) filled = blst_leaf_fill ( bl -> bl_root , blkno , count ) ; else filled = blst_meta_fill ( bl -> bl_root , blkno , count , bl -> bl_radix , bl -> bl_skip , 0 ) ; bl -> bl_free -= filled ; return filled ; } else return 0 ; }
blist_fill() -       mark a region in the block bitmap as off-limits
                      to the allocator (i.e.
blist_fill () - mark a region in the block bitmap as off - limits to the allocator ( i . e .