From: Matthew Wilcox Date: Fri, 3 Jul 2015 14:40:39 +0000 (-0400) Subject: dax: Use copy_from_iter_nocache X-Git-Tag: v4.1.12-92~18^2^2~170 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=dd8d1a97d16f7cb6894a47018f0c517cb993e099;p=users%2Fjedix%2Flinux-maple.git dax: Use copy_from_iter_nocache Orabug: 22913653 When userspace does a write, there's no need for the written data to pollute the CPU cache. This matches the original XIP code. Signed-off-by: Matthew Wilcox Signed-off-by: Al Viro (cherry picked from commit 872eb127e3a6cddcfca1410bb808d9b9bc773dc1) Signed-off-by: Dan Duval --- diff --git a/fs/dax.c b/fs/dax.c index 99b5fbc38992..eaa9e0683227 100644 --- a/fs/dax.c +++ b/fs/dax.c @@ -155,7 +155,7 @@ static ssize_t dax_io(struct inode *inode, struct iov_iter *iter, } if (iov_iter_rw(iter) == WRITE) - len = copy_from_iter(addr, max - pos, iter); + len = copy_from_iter_nocache(addr, max - pos, iter); else if (!hole) len = copy_to_iter(addr, max - pos, iter); else