Skip to content

Commit

Permalink
stricter log consumption by write()
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Morris committed Oct 24, 2017
1 parent 1ab2317 commit 0754d21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion file.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ filewrite(struct file *f, char *addr, int n)
// and 2 blocks of slop for non-aligned writes.
// this really belongs lower down, since writei()
// might be writing a device like the console.
int max = ((LOGSIZE-1-1-2) / 2) * 512;
int max = ((MAXOPBLOCKS-1-1-2) / 2) * 512;
int i = 0;
while(i < n){
int n1 = n - i;
Expand Down

0 comments on commit 0754d21

Please sign in to comment.