summaryrefslogtreecommitdiff
path: root/bio.c
diff options
context:
space:
mode:
Diffstat (limited to 'bio.c')
-rw-r--r--bio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bio.c b/bio.c
index 17965d1..62675bf 100644
--- a/bio.c
+++ b/bio.c
@@ -39,7 +39,7 @@ getblk(uint dev, uint sector)
acquire(&buf_table_lock);
- while(1){
+ for(;;){
for(b = bufhead.next; b != &bufhead; b = b->next)
if((b->flags & (B_BUSY|B_VALID)) && b->dev == dev && b->sector == sector)
break;