Skip to content

Commit

Permalink
nothing much
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Morris committed Aug 9, 2017
1 parent 4f14d8d commit 6389d9d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bio.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ bread(uint dev, uint blockno)
struct buf *b;

b = bget(dev, blockno);
if(!(b->flags & B_VALID)) {
if((b->flags & B_VALID) == 0) {
iderw(b);
}
return b;
Expand Down
2 changes: 1 addition & 1 deletion fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ static struct inode* iget(uint dev, uint inum);

//PAGEBREAK!
// 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.
struct inode*
ialloc(uint dev, short type)
Expand Down
4 changes: 3 additions & 1 deletion log.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ end_op(void)
do_commit = 1;
log.committing = 1;
} 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);
}
release(&log.lock);
Expand Down

0 comments on commit 6389d9d

Please sign in to comment.