nothing much

This commit is contained in:
Robert Morris 2017-08-09 14:16:55 -04:00
parent 4f14d8d1e5
commit 6389d9d410
3 changed files with 5 additions and 3 deletions

2
bio.c
View file

@ -99,7 +99,7 @@ bread(uint dev, uint blockno)
struct buf *b; struct buf *b;
b = bget(dev, blockno); b = bget(dev, blockno);
if(!(b->flags & B_VALID)) { if((b->flags & B_VALID) == 0) {
iderw(b); iderw(b);
} }
return b; return b;

2
fs.c
View file

@ -190,7 +190,7 @@ static struct inode* iget(uint dev, uint inum);
//PAGEBREAK! //PAGEBREAK!
// Allocate an inode on device dev. // Allocate an inode on device dev.
// Give it type type. // Mark it as allocated by giving it type type.
// Returns an unlocked but allocated and referenced inode. // Returns an unlocked but allocated and referenced inode.
struct inode* struct inode*
ialloc(uint dev, short type) ialloc(uint dev, short type)

4
log.c
View file

@ -155,7 +155,9 @@ end_op(void)
do_commit = 1; do_commit = 1;
log.committing = 1; log.committing = 1;
} else { } else {
// begin_op() may be waiting for log space. // begin_op() may be waiting for log space,
// and decrementing log.outstanding has decreased
// the amount of reserved space.
wakeup(&log); wakeup(&log);
} }
release(&log.lock); release(&log.lock);