512 -> BSIZE
This commit is contained in:
parent
a825f22cf8
commit
d9818b89e1
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ filewrite(struct file *f, uint64 addr, int n)
|
||||||
// and 2 blocks of slop for non-aligned writes.
|
// and 2 blocks of slop for non-aligned writes.
|
||||||
// this really belongs lower down, since writei()
|
// this really belongs lower down, since writei()
|
||||||
// might be writing a device like the console.
|
// might be writing a device like the console.
|
||||||
int max = ((MAXOPBLOCKS-1-1-2) / 2) * 512;
|
int max = ((MAXOPBLOCKS-1-1-2) / 2) * BSIZE;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
while(i < n){
|
while(i < n){
|
||||||
int n1 = n - i;
|
int n1 = n - i;
|
||||||
|
|
Loading…
Reference in a new issue