Lines Matching refs:block_count
188 bool BlockHeader::NeedToGrowBlockFile(int block_count) const {
193 if (i >= block_count - 1 && header_->empty[i])
206 bool BlockHeader::CanAllocate(int block_count) const {
207 DCHECK_GT(block_count, 0);
208 for (int i = block_count - 1; i < kMaxNumBlocks; i++) {
318 bool BlockFiles::CreateBlock(FileType block_type, int block_count,
325 if (block_count < 1 || block_count > kMaxNumBlocks)
331 MappedFile* file = FileForNewBlock(block_type, block_count);
339 if (!file_header.CreateMapBlock(block_count, &index))
342 Addr address(block_type, block_count, file_header.FileId(), index);
550 MappedFile* BlockFiles::FileForNewBlock(FileType block_type, int block_count) {
556 while (file_header.NeedToGrowBlockFile(block_count)) {