summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/affs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/affs/file.c b/fs/affs/file.c
index e5c5de6b85e5..196ee7f6fdc4 100644
--- a/fs/affs/file.c
+++ b/fs/affs/file.c
@@ -679,7 +679,7 @@ static int affs_write_end_ofs(struct file *file, struct address_space *mapping,
679 int written; 679 int written;
680 680
681 from = pos & (PAGE_SIZE - 1); 681 from = pos & (PAGE_SIZE - 1);
682 to = pos + len; 682 to = from + len;
683 /* 683 /*
684 * XXX: not sure if this can handle short copies (len < copied), but 684 * XXX: not sure if this can handle short copies (len < copied), but
685 * we don't have to, because the page should always be uptodate here, 685 * we don't have to, because the page should always be uptodate here,