Lines Matching refs:bitmapblks
3287 daddr_t bitmapblks;
3385 bitmapblks = roundup((newblkcnt+7) / 8, vcb->vcbVBMIOSize) / vcb->blockSize;
3386 if (bitmapblks > (daddr_t)fp->ff_blocks)
3387 bitmapblks -= fp->ff_blocks;
3389 bitmapblks = 0;
3391 if (bitmapblks > 0) {
3409 error = ExtendFileC(vcb, fp, bitmapblks * vcb->blockSize, 0,
3423 error = AddFileExtent(vcb, fp, vcb->totalBlocks, bitmapblks);
3428 fp->ff_blocks += bitmapblks;
3438 fp->ff_size += (u_int64_t)bitmapblks * (u_int64_t)vcb->blockSize;
3446 blkcnt = bitmapblks;
3478 error = BlockMarkAllocated(vcb, vcb->totalBlocks, bitmapblks);
3483 vcb->freeBlocks -= bitmapblks;
3525 fp->ff_blocks -= bitmapblks;
3526 fp->ff_size -= (u_int64_t)bitmapblks * (u_int64_t)vcb->blockSize;
3530 * effect of the "vcb->freeBlocks -= bitmapblks" above.
3532 vcb->freeBlocks += bitmapblks;