Lines Matching refs:disk_cache
34 void FixAllocationCounters(disk_cache::BlockFileHeader* header);
39 bool CreateMapBlock(int target, int size, disk_cache::BlockFileHeader* header, in CreateMapBlock()
41 if (target <= 0 || target > disk_cache::kMaxNumBlocks || in CreateMapBlock()
42 size <= 0 || size > disk_cache::kMaxNumBlocks) { in CreateMapBlock()
60 disk_cache::FileLock lock(header); in CreateMapBlock()
88 void DeleteMapBlock(int index, int size, disk_cache::BlockFileHeader* header) { in DeleteMapBlock()
89 if (size < 0 || size > disk_cache::kMaxNumBlocks) { in DeleteMapBlock()
108 disk_cache::FileLock lock(header); in DeleteMapBlock()
128 bool UsedMapBlock(int index, int size, disk_cache::BlockFileHeader* header) { in UsedMapBlock()
129 if (size < 0 || size > disk_cache::kMaxNumBlocks) { in UsedMapBlock()
147 void FixAllocationCounters(disk_cache::BlockFileHeader* header) { in FixAllocationCounters()
148 for (int i = 0; i < disk_cache::kMaxNumBlocks; i++) { in FixAllocationCounters()
166 bool NeedToGrowBlockFile(const disk_cache::BlockFileHeader* header, in NeedToGrowBlockFile()
170 for (int i = 0; i < disk_cache::kMaxNumBlocks; i++) { in NeedToGrowBlockFile()
176 if (header->next_file && (empty_blocks < disk_cache::kMaxBlocks / 10)) { in NeedToGrowBlockFile()
187 namespace disk_cache { namespace