summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2016-09-15 19:16:30 -0400
committerFrans Kaashoek <[email protected]>2016-09-15 19:16:30 -0400
commit912575ad12b7eacc2b0074e3a91843debd52d5f9 (patch)
treedbd127645a493bff180e7e2d2c01235b6546ed66
parentd6dc5bcb2da252ea01937a7788b02ce849be2d3c (diff)
downloadxv6-labs-912575ad12b7eacc2b0074e3a91843debd52d5f9.tar.gz
xv6-labs-912575ad12b7eacc2b0074e3a91843debd52d5f9.tar.bz2
xv6-labs-912575ad12b7eacc2b0074e3a91843debd52d5f9.zip
Remove left-over print statements
-rw-r--r--bio.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/bio.c b/bio.c
index 90dbcdc..fd3a47c 100644
--- a/bio.c
+++ b/bio.c
@@ -65,16 +65,12 @@ bget(uint dev, uint blockno)
acquire(&bcache.lock);
- // cprintf("bget %d\n", blockno);
-
// Is the block already cached?
for(b = bcache.head.next; b != &bcache.head; b = b->next){
if(b->dev == dev && b->blockno == blockno){
- //cprintf("bget %d; get sleep lock for buffer %p\n", blockno, b - bcache.buf);
b->refcnt++;
release(&bcache.lock);
acquiresleep(&b->lock);
- //cprintf("bget: return buffer %p for blk %d\n", b - bcache.buf, blockno);
return b;
}
}
@@ -84,14 +80,12 @@ bget(uint dev, uint blockno)
// hasn't yet committed the changes to the buffer.
for(b = bcache.head.prev; b != &bcache.head; b = b->prev){
if(b->refcnt == 0 && (b->flags & B_DIRTY) == 0) {
- // cprintf("bget %d; use %p for %d\n", b - bcache.buf, blockno);
b->dev = dev;
b->blockno = blockno;
b->flags = 0;
b->refcnt = 1;
release(&bcache.lock);
acquiresleep(&b->lock);
- // cprintf("bget: return buffer %p for blk %d\n", b - bcache.buf, blockno);
return b;
}
}