Skip to content

Commit 0754d21

Browse files
author
Robert Morris
committed
stricter log consumption by write()
1 parent 1ab2317 commit 0754d21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

file.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ filewrite(struct file *f, char *addr, int n)
130130
// and 2 blocks of slop for non-aligned writes.
131131
// this really belongs lower down, since writei()
132132
// might be writing a device like the console.
133-
int max = ((LOGSIZE-1-1-2) / 2) * 512;
133+
int max = ((MAXOPBLOCKS-1-1-2) / 2) * 512;
134134
int i = 0;
135135
while(i < n){
136136
int n1 = n - i;

0 commit comments

Comments
 (0)