diff options
author | Russ Cox <rsc@swtch.com> | 2007-09-25 09:47:31 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2007-09-25 09:47:31 -0400 |
commit | 7a400ee957a0815287af806e18ef90dd18b47f82 (patch) | |
tree | 023076fb829f630384f2f394eb9577a81fdca59e /src/cmd/venti/srv/hdisk.c | |
parent | 25a4e89fa907ed5a5f5d84eccfb66180007d9c68 (diff) | |
download | plan9port-7a400ee957a0815287af806e18ef90dd18b47f82.tar.gz plan9port-7a400ee957a0815287af806e18ef90dd18b47f82.tar.bz2 plan9port-7a400ee957a0815287af806e18ef90dd18b47f82.zip |
venti: new icache
Diffstat (limited to 'src/cmd/venti/srv/hdisk.c')
-rw-r--r-- | src/cmd/venti/srv/hdisk.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cmd/venti/srv/hdisk.c b/src/cmd/venti/srv/hdisk.c index 266218b1..8cf937d1 100644 --- a/src/cmd/venti/srv/hdisk.c +++ b/src/cmd/venti/srv/hdisk.c @@ -547,7 +547,7 @@ debugread(HConnect *c, u8int *score) Lump *u; IAddr ia; IEntry ie; - int i, rac; + int i; Arena *arena; u64int aa; ZBlock *zb; @@ -561,7 +561,7 @@ debugread(HConnect *c, u8int *score) } hprint(&c->hout, "<h2>index search %V</h2><pre>\n", score); - if(_lookupscore(score, -1, &ia, nil) < 0) + if(icachelookup(score, -1, &ia) < 0) hprint(&c->hout, " icache: not found\n"); else hprint(&c->hout, " icache: addr=%#llx size=%d type=%d blocks=%d\n", @@ -585,12 +585,12 @@ debugread(HConnect *c, u8int *score) hprint(&c->hout, " -cache"); putlump(u); - if(lookupscore(score, type, &ia, &rac) < 0){ + if(lookupscore(score, type, &ia) < 0){ hprint(&c->hout, " -lookup\n"); continue; } - hprint(&c->hout, "\n lookupscore: addr=%#llx size=%d blocks=%d rac=%d\n", - ia.addr, ia.size, ia.blocks, rac); + hprint(&c->hout, "\n lookupscore: addr=%#llx size=%d blocks=%d\n", + ia.addr, ia.size, ia.blocks); arena = amapitoa(mainindex, ia.addr, &aa); if(arena == nil){ |