File tree 3 files changed +5
-3
lines changed
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ bread(uint dev, uint blockno)
99
99
struct buf * b ;
100
100
101
101
b = bget (dev , blockno );
102
- if (! (b -> flags & B_VALID )) {
102
+ if ((b -> flags & B_VALID ) == 0 ) {
103
103
iderw (b );
104
104
}
105
105
return b ;
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ static struct inode* iget(uint dev, uint inum);
190
190
191
191
//PAGEBREAK!
192
192
// Allocate an inode on device dev.
193
- // Give it type type.
193
+ // Mark it as allocated by giving it type type.
194
194
// Returns an unlocked but allocated and referenced inode.
195
195
struct inode *
196
196
ialloc (uint dev , short type )
Original file line number Diff line number Diff line change @@ -155,7 +155,9 @@ end_op(void)
155
155
do_commit = 1 ;
156
156
log .committing = 1 ;
157
157
} 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.
159
161
wakeup (& log );
160
162
}
161
163
release (& log .lock );
You can’t perform that action at this time.
0 commit comments