| plan 9 kernel history: overview | file list | diff list |
1999/0903/port/cache.c (diff list | history)
| 1999/0629/sys/src/9/port/cache.c:58,63 – 1999/0903/sys/src/9/port/cache.c:58,64 (short | long | prev | next) | ||
| 1999/0508 | static Image fscache; static Cache cache; static Ecache ecache; | |
| 1999/0903 | static int maxcache = MAXCACHE; | |
| 1999/0508 | static void extentfree(Extent* e) | |
| 1999/0629/sys/src/9/port/cache.c:109,114 – 1999/0903/sys/src/9/port/cache.c:110,118 | ||
| 1993/1014 | cache.head = xalloc(sizeof(Mntcache)*NFILE); m = cache.head; | |
| 1998/0512 | ||
| 1999/0903 | if(conf.npage*BY2PG > 200*MB) maxcache = 10*MAXCACHE; | |
| 1993/1016 | for(i = 0; i < NFILE-1; i++) { | |
| 1993/1014 | m->next = m+1; m->prev = m-1; | |
| 1999/0629/sys/src/9/port/cache.c:290,296 – 1999/0903/sys/src/9/port/cache.c:294,300 | ||
| 1993/1017 | int o, l, total; | |
| 1998/0327 | ulong offset; | |
| 1993/1013 | ||
| 1998/0327 |
| |
| 1999/0903 | if(off+len > maxcache) | |
| 1998/0327 | return 0; | |
| 1993/1013 | m = c->mcp; | |
| 1999/0629/sys/src/9/port/cache.c:453,459 – 1999/0903/sys/src/9/port/cache.c:457,463 | ||
| 1993/1015 | int o, ee, eblock; | |
| 1998/0327 | ulong offset; | |
| 1993/1013 | ||
| 1998/0327 |
| |
| 1999/0903 | if(off > maxcache || len == 0) | |
| 1993/1015 | return; | |
| 1993/1013 | m = c->mcp; | |
| 1999/0629/sys/src/9/port/cache.c:563,569 – 1999/0903/sys/src/9/port/cache.c:567,573 | ||
| 1993/1015 | Extent *p, *f, *e, *tail; | |
| 1998/0327 | ulong offset; | |
| 1993/1015 | ||
| 1998/0327 |
| |
| 1999/0903 | if(off > maxcache || len == 0) | |
| 1993/1015 | return; m = c->mcp; | |