Searched refs:nextAllocation (Results 1 - 11 of 11) sorted by relevance

/xnu-2782.1.97/bsd/hfs/
H A Dhfs_btreeio.c440 startAllocation = vcb->nextAllocation;
477 (vcb->nextAllocation > startAllocation) &&
478 ((vcb->nextAllocation + fileblocks) < vcb->allocLimit)) {
479 HFS_UPDATE_NEXT_ALLOCATION(vcb, vcb->nextAllocation + fileblocks);
H A Dhfs_format.h680 u_int32_t nextAllocation; /* start of next allocation search */ member in struct:HFSPlusVolumeHeader
H A Dhfs.h33 * of the disk instead of the nextAllocation for sparse devices like
195 u_int32_t nextAllocation; /* start of next allocation search */ member in struct:hfsmount
455 /* When set, do not update nextAllocation in the mount structure */
477 * nextAllocation block.
482 hfsmp->nextAllocation = new_nextAllocation; \
H A Dhfs_vfsutils.c139 vcb->nextAllocation = SWAP_BE16 (mdb->drAllocPtr);
441 vcb->nextAllocation = SWAP_BE32(vhp->nextAllocation);
1021 if (vcb->nextAllocation >= hfsmp->hfs_metazone_start &&
1022 vcb->nextAllocation <= hfsmp->hfs_metazone_end) {
1026 if (vcb->nextAllocation <= 1) {
1027 vcb->nextAllocation = hfsmp->hfs_min_alloc_start;
H A Dhfs_vfsops.c900 HFS_UPDATE_NEXT_ALLOCATION(vcb, SWAP_BE32 (vhp->nextAllocation));
2127 // set the nextAllocation pointer to the smallest free block number
2136 if (min_start < hfsmp->nextAllocation) {
2137 hfsmp->nextAllocation = min_start;
3620 mdb->drAllocPtr = SWAP_BE16 (vcb->nextAllocation);
3898 volumeHeader->nextAllocation = SWAP_BE32 (vcb->nextAllocation);
H A Dhfs_resize.c843 if (hfsmp->nextAllocation >= hfsmp->allocLimit) {
844 hfsmp->nextAllocation = hfsmp->hfs_metazone_end + 1;
H A Dhfs_readwrite.c1900 *(u_int32_t *)ap->a_data = hfsmp->nextAllocation;
1902 /* On magic value for location, set nextAllocation to next block
1904 * that nextAllocation should not be updated again.
4971 blockHint = hfsmp->nextAllocation;
5035 nextallocsave = hfsmp->nextAllocation;
H A Dhfs_hotfiles.c1407 error = hfs_relocate(vp, HFSTOVCB(hfsmp)->nextAllocation, vfs_context_ucred(ctx), vfs_context_proc(ctx));
H A Dhfs_vnops.c745 (void) hfs_relocate(vp, hfsmp->nextAllocation + 4096,
/xnu-2782.1.97/bsd/hfs/hfscommon/Misc/
H A DVolumeAllocation.c909 Boolean updateAllocPtr = false; // true if nextAllocation needs to be updated
988 /* Sparse Allocation and nextAllocation are both used even if the R/B Tree is on */
993 startingBlock = vcb->nextAllocation;
1288 if (vcb->nextAllocation == (firstBlock + numBlocks)) {
1289 HFS_UPDATE_NEXT_ALLOCATION(vcb, (vcb->nextAllocation - numBlocks));
3247 // set the nextAllocation pointer to the smallest free block number
3257 if (min_start < vcb->nextAllocation) {
3258 vcb->nextAllocation = min_start;
H A DFileExtentMapping.c1355 if (vcb->nextAllocation >= VCBTOHFS(vcb)->hfs_metazone_start &&
1356 vcb->nextAllocation <= VCBTOHFS(vcb)->hfs_metazone_end) {

Completed in 202 milliseconds