diff options
author | rsc <devnull@localhost> | 2006-04-01 19:24:03 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-04-01 19:24:03 +0000 |
commit | cbeb0b26e4c7caa8d1b47de791a7418dc20a4567 (patch) | |
tree | e0f7e445de1aa22a42ef873dc4b1118a8105ae93 /src/cmd/venti/srv/dcache.c | |
parent | 226d80b8213821af0cbf092d1507c52b504fd368 (diff) | |
download | plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.gz plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.bz2 plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.zip |
Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
Diffstat (limited to 'src/cmd/venti/srv/dcache.c')
-rw-r--r-- | src/cmd/venti/srv/dcache.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cmd/venti/srv/dcache.c b/src/cmd/venti/srv/dcache.c index 72aaafaf..f5cc8e64 100644 --- a/src/cmd/venti/srv/dcache.c +++ b/src/cmd/venti/srv/dcache.c @@ -34,7 +34,7 @@ enum { HashLog = 9, HashSize = 1<<HashLog, - HashMask = HashSize - 1, + HashMask = HashSize - 1 }; struct DCache @@ -213,7 +213,7 @@ return; lastmiss.addr = addr; } -// fprint(2, "%s %llx %s\n", part->name, addr, miss ? "miss" : "hit"); +/* fprint(2, "%s %llx %s\n", part->name, addr, miss ? "miss" : "hit"); */ } int @@ -297,7 +297,7 @@ _getdblock(Part *part, u64int addr, int mode, int load) /* * look for the block in the cache */ -//checkdcache(); +/*checkdcache(); */ qlock(&dcache.lock); again: for(b = dcache.heads[h]; b != nil; b = b->next){ @@ -367,7 +367,7 @@ found: fixheap(b->heap, b); qunlock(&dcache.lock); -//checkdcache(); +/*checkdcache(); */ trace(TraceBlock, "getdblock lock"); addstat(StatDblockStall, 1); @@ -427,7 +427,7 @@ putdblock(DBlock *b) else wunlock(&b->lock); -//checkdcache(); +/*checkdcache(); */ qlock(&dcache.lock); if(--b->ref == 0 && !b->dirty){ if(b->heap == TWID32) @@ -435,7 +435,7 @@ putdblock(DBlock *b) rwakeupall(&dcache.full); } qunlock(&dcache.lock); -//checkdcache(); +/*checkdcache(); */ } void |