Lines Matching defs:run

43 	Allocate(block_run run)
45 fRun(run)
65 Free(block_run run)
67 fRun(run)
372 /*! Allocates the specified run in the allocation group.
373 Doesn't check if the run is valid or already allocated partially, nor
441 /*! Frees the specified run in the allocation group.
442 Doesn't check if the run is valid or was not completely allocated, nor
727 is put into \a run.
734 uint16 start, uint16 maximum, uint16 minimum, block_run& run)
899 run.allocation_group = HOST_ENDIAN_TO_BFS_INT32(bestGroup);
900 run.start = HOST_ENDIAN_TO_BFS_INT16(bestStart);
901 run.length = HOST_ENDIAN_TO_BFS_INT16(bestLength);
913 block_cache_discard(fVolume->BlockCache(), fVolume->ToBlock(run),
914 run.Length());
916 T(Allocate(run));
923 const block_run* parent, mode_t type, block_run& run)
936 return AllocateBlocks(transaction, group, 0, 1, 1, run);
942 off_t numBlocks, block_run& run, uint16 minimum)
977 // Since size > 0, there must be a valid block run in this stream
995 return AllocateBlocks(transaction, group, start, numBlocks, minimum, run);
1000 BlockAllocator::Free(Transaction& transaction, block_run run)
1004 int32 group = run.AllocationGroup();
1005 uint16 start = run.Start();
1006 uint16 length = run.Length();
1010 T(Free(run));
1036 if (CheckBlockRun(run) != B_OK)
1048 if (CheckBlockRun(run, NULL, false) != B_OK) {
1055 HOST_ENDIAN_TO_BFS_INT64(fVolume->UsedBlocks() - run.Length());
1300 BlockAllocator::IsValidBlockRun(block_run run, const char* type)
1302 if (run.AllocationGroup() < 0 || run.AllocationGroup() >= fNumGroups
1303 || run.Start() > fGroups[run.AllocationGroup()].fNumBits
1304 || uint32(run.Start() + run.Length())
1305 > fGroups[run.AllocationGroup()].fNumBits
1306 || run.length == 0) {
1308 " is invalid!\n", type, run.AllocationGroup(), run.Start(),
1309 run.Length()));
1317 BlockAllocator::CheckBlockRun(block_run run, const char* type, bool allocated)
1319 if (!IsValidBlockRun(run, type))
1322 status_t status = CheckBlocks(fVolume->ToBlock(run), run.Length(),
1326 " is only partially allocated!\n", type, run.AllocationGroup(),
1327 run.Start(), run.Length()));