diff options
author | Robert Morris <[email protected]> | 2017-10-24 08:49:31 -0400 |
---|---|---|
committer | Robert Morris <[email protected]> | 2017-10-24 08:49:31 -0400 |
commit | 0754d21c865e97582968fa5d155eac133e5829b0 (patch) | |
tree | 424ce60e416225dd987a68016649cda6758170c6 /file.c | |
parent | 1ab23170a1dda9fb16bd0a87c54040bbf08ebeaf (diff) | |
download | xv6-labs-0754d21c865e97582968fa5d155eac133e5829b0.tar.gz xv6-labs-0754d21c865e97582968fa5d155eac133e5829b0.tar.bz2 xv6-labs-0754d21c865e97582968fa5d155eac133e5829b0.zip |
stricter log consumption by write()
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |