summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrans Kaashoek <[email protected]>2019-08-20 11:56:56 -0400
committerFrans Kaashoek <[email protected]>2019-08-20 11:56:56 -0400
commitd9818b89e136ed51242257ca6cbf0a78292f862b (patch)
tree51b5fc344e941bf358aae4b25b4329449ee90f20
parenta825f22cf8783a078b65cdc3c8393811c3c1b702 (diff)
downloadxv6-labs-d9818b89e136ed51242257ca6cbf0a78292f862b.tar.gz
xv6-labs-d9818b89e136ed51242257ca6cbf0a78292f862b.tar.bz2
xv6-labs-d9818b89e136ed51242257ca6cbf0a78292f862b.zip
512 -> BSIZE
-rw-r--r--kernel/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/file.c b/kernel/file.c
index 7663476..fc87c09 100644
--- a/kernel/file.c
+++ b/kernel/file.c
@@ -148,7 +148,7 @@ filewrite(struct file *f, uint64 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 = ((MAXOPBLOCKS-1-1-2) / 2) * 512;
+ int max = ((MAXOPBLOCKS-1-1-2) / 2) * BSIZE;
int i = 0;
while(i < n){
int n1 = n - i;