From: Matthew Wilcox Date: Fri, 3 Jul 2015 14:40:39 +0000 (-0400) Subject: dax: Use copy_from_iter_nocache X-Git-Tag: v4.2-rc1~2^2~5 X-Git-Url: http://git.cascardo.eti.br/?a=commitdiff_plain;h=872eb127e3a6cddcfca1410bb808d9b9bc773dc1;p=cascardo%2Flinux.git dax: Use copy_from_iter_nocache 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 --- diff --git a/fs/dax.c b/fs/dax.c index 6f65f00e58ec..159f796afa85 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