Lines Matching refs:lru
1286 deque<fdcache_entry> lru; // @head: most recently used
1298 for (auto i = lru.begin(); i < lru.end(); i++)
1303 set_metric("fdcache_count", lru.size());
1313 for (auto i = lru.begin(); i < lru.end(); i++)
1318 lru.erase(i);
1339 lru.push_front(n);
1369 for (auto i = lru.begin(); i < lru.end(); i++)
1372 { // found it; move it to head of lru
1374 lru.erase(i); // invalidates i, so no more iteration!
1375 lru.push_front(n);
1381 // Iterate through prefetch while fd == -1 to ensure that no duplication between lru and
1386 { // found it; take the entry from the prefetch deque to the lru deque, since it has now been accessed.
1389 lru.push_front(n);
1412 for (auto i = lru.begin(); i < lru.end(); i++)
1435 for (auto i = lru.begin(); i < lru.end(); i++)
1438 { // found it; erase it from lru
1440 lru.erase(i); // invalidates i, so no more iteration!
1450 { // found it; erase it from lru
1473 for (auto i = lru.begin(); i < lru.end(); i++)
1482 for (auto j = i; j < lru.end(); j++) // close all the fds from here on in
1492 lru.erase(i, lru.end()); // erase the nodes generally
1961 true); // requested ones go to the front of lru
2066 // a little lru pool of debuginfod_client*s for reuse between query threads