Lines Matching refs:btcb
588 BTreeControlBlockPtr btcb = NULL;
645 MALLOC(btcb, BTreeControlBlock *, sizeof(BTreeControlBlock), M_TEMP, M_WAITOK);
646 bzero(btcb, sizeof(BTreeControlBlock));
648 btcb->nodeSize = nodesize;
649 btcb->maxKeyLength = kHFSPlusAttrKeyMaximumLength;
650 btcb->btreeType = 0xFF;
651 btcb->attributes = kBTVariableIndexKeysMask | kBTBigKeysMask;
652 btcb->version = kBTreeVersion;
653 btcb->writeCount = 1;
654 btcb->flags = 0; /* kBTHeaderDirty */
655 btcb->fileRefNum = vp;
656 btcb->getBlockProc = GetBTreeBlock;
657 btcb->releaseBlockProc = ReleaseBTreeBlock;
658 btcb->setEndOfForkProc = ExtendBTreeFile;
659 btcb->keyCompareProc = (KeyCompareProcPtr)hfs_attrkeycompare;
660 VTOF(vp)->fcbBTCBPtr = btcb;
676 btcb->totalNodes = VTOF(vp)->ff_size / nodesize;
677 btcb->freeNodes = btcb->totalNodes - 1;
712 bthp->totalNodes = btcb->totalNodes;
713 bthp->freeNodes = btcb->freeNodes;
752 if (btcb) {
753 FREE (btcb, M_TEMP);