a few nits
passes all tests on two-processor smp
This commit is contained in:
parent
b364c4b881
commit
af03ab142d
3 changed files with 1 additions and 4 deletions
1
bio.c
1
bio.c
|
@ -109,7 +109,6 @@ bread(uint dev, uint sector)
|
||||||
void
|
void
|
||||||
bwrite(struct buf *b)
|
bwrite(struct buf *b)
|
||||||
{
|
{
|
||||||
cprintf("bwrite sector %d\n", b->sector);
|
|
||||||
if((b->flags & B_BUSY) == 0)
|
if((b->flags & B_BUSY) == 0)
|
||||||
panic("bwrite");
|
panic("bwrite");
|
||||||
b->flags |= B_DIRTY;
|
b->flags |= B_DIRTY;
|
||||||
|
|
2
exec.c
2
exec.c
|
@ -102,7 +102,7 @@ exec(char *path, char **argv)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
bad:
|
bad:
|
||||||
freevm(pgdir);
|
if (pgdir) freevm(pgdir);
|
||||||
iunlockput(ip);
|
iunlockput(ip);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
2
kalloc.c
2
kalloc.c
|
@ -111,8 +111,6 @@ kalloc(int n)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
release(&kmem.lock);
|
release(&kmem.lock);
|
||||||
|
|
||||||
cprintf("kalloc: out of memory\n");
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue