aboutsummaryrefslogtreecommitdiffstats
path: root/fs/splice.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/splice.c')
-rw-r--r--fs/splice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/splice.c b/fs/splice.c
index 0a6916423e7d..d4664a297bab 100644
--- a/fs/splice.c
+++ b/fs/splice.c
@@ -640,13 +640,13 @@ find_page:
640 /* 640 /*
641 * Careful, ->map() uses KM_USER0! 641 * Careful, ->map() uses KM_USER0!
642 */ 642 */
643 char *src = buf->ops->map(info, buf); 643 char *src = buf->ops->map(info, buf, 1);
644 char *dst = kmap_atomic(page, KM_USER1); 644 char *dst = kmap_atomic(page, KM_USER1);
645 645
646 memcpy(dst + offset, src + buf->offset, this_len); 646 memcpy(dst + offset, src + buf->offset, this_len);
647 flush_dcache_page(page); 647 flush_dcache_page(page);
648 kunmap_atomic(dst, KM_USER1); 648 kunmap_atomic(dst, KM_USER1);
649 buf->ops->unmap(info, buf); 649 buf->ops->unmap(info, buf, src);
650 } 650 }
651 651
652 ret = mapping->a_ops->commit_write(file, page, offset, offset+this_len); 652 ret = mapping->a_ops->commit_write(file, page, offset, offset+this_len);