Skip to content

Commit 6389d9d

Browse files
author
Robert Morris
committed
nothing much
1 parent 4f14d8d commit 6389d9d

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

bio.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ bread(uint dev, uint blockno)
9999
struct buf *b;
100100

101101
b = bget(dev, blockno);
102-
if(!(b->flags & B_VALID)) {
102+
if((b->flags & B_VALID) == 0) {
103103
iderw(b);
104104
}
105105
return b;

fs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ static struct inode* iget(uint dev, uint inum);
190190

191191
//PAGEBREAK!
192192
// Allocate an inode on device dev.
193-
// Give it type type.
193+
// Mark it as allocated by giving it type type.
194194
// Returns an unlocked but allocated and referenced inode.
195195
struct inode*
196196
ialloc(uint dev, short type)

log.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,9 @@ end_op(void)
155155
do_commit = 1;
156156
log.committing = 1;
157157
} else {
158-
// begin_op() may be waiting for log space.
158+
// begin_op() may be waiting for log space,
159+
// and decrementing log.outstanding has decreased
160+
// the amount of reserved space.
159161
wakeup(&log);
160162
}
161163
release(&log.lock);

0 commit comments

Comments
 (0)