nfs_write_end(): fix handling of short copies
[pandora-kernel.git] / fs / nfs / file.c
index 961e562..8b8d6a5 100644 (file)
@@ -397,7 +397,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,