From 0754d21c865e97582968fa5d155eac133e5829b0 Mon Sep 17 00:00:00 2001 From: Robert Morris Date: Tue, 24 Oct 2017 08:49:31 -0400 Subject: stricter log consumption by write() --- file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'file.c') diff --git a/file.c b/file.c index 95cadb3..24b32c2 100644 --- a/file.c +++ b/file.c @@ -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; -- cgit v1.2.3