Searched refs:used_sectors (Results 1 – 1 of 1) sorted by relevance
/system/vold/ |
D | Checkpoint.cpp | 525 bool checkCollision(Used_Sectors& used_sectors, sector_t start, sector_t end) { in checkCollision() argument 526 auto second_overlap = used_sectors.upper_bound(start); in checkCollision() 531 } else if (second_overlap != used_sectors.end() && second_overlap->first < end) { in checkCollision() 537 void markUsed(Used_Sectors& used_sectors, sector_t start, sector_t end) { in markUsed() argument 538 auto start_pos = used_sectors.insert_or_assign(start, true).first; in markUsed() 539 auto end_pos = used_sectors.insert_or_assign(end, false).first; in markUsed() 541 if (start_pos == used_sectors.begin() || !std::prev(start_pos)->second) { in markUsed() 544 if (std::next(end_pos) != used_sectors.end() && !std::next(end_pos)->second) { in markUsed() 548 used_sectors.erase(start_pos, end_pos); in markUsed() 554 void restoreSector(int device_fd, Used_Sectors& used_sectors, std::vector<char>& ls_buffer, in restoreSector() argument [all …]
|