summaryrefslogtreecommitdiffstats
path: root/kernel/fs/nfs/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fs/nfs/file.c')
-rw-r--r--kernel/fs/nfs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/fs/nfs/file.c b/kernel/fs/nfs/file.c
index 93e236429..dc875cd0e 100644
--- a/kernel/fs/nfs/file.c
+++ b/kernel/fs/nfs/file.c
@@ -407,7 +407,7 @@ static int nfs_write_end(struct file *file, struct address_space *mapping,
*/
if (!PageUptodate(page)) {
unsigned pglen = nfs_page_length(page);
- unsigned end = offset + len;
+ unsigned end = offset + copied;
if (pglen == 0) {
zero_user_segments(page, 0, offset,