| plan 9 kernel history: overview | file list | diff list |
1999/1022/port/cache.c (diff list | history)
| 1999/0903/sys/src/9/port/cache.c:396,401 – 1999/1022/sys/src/9/port/cache.c:396,409 (short | long | prev | next) | ||
| 1993/1017 | lock(&cache); e->bid = cache.pgno; cache.pgno += BY2PG; | |
| 1999/1022 | /* wrap the counter; low bits are unused by pghash by checked by lookpage */ if((cache.pgno & ~(BY2PG-1)) == 0){ if(cache.pgno == BY2PG-1){ print("cache wrapped\n"); cache.pgno = 0; }else cache.pgno++; } | |
| 1993/1017 | unlock(&cache); | |
| 1993/1018 | ||
| 1993/1014 | p->daddr = e->bid; | |