summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorMatthew Wilcox <willy@linux.intel.com>2015-07-03 10:40:39 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2015-07-04 15:56:56 -0400
commit872eb127e3a6cddcfca1410bb808d9b9bc773dc1 (patch)
treed7275d7533753a7077b651a011f09d9ea8b62e9d /fs
parent44f4c054cae646a9296da05cdfe7d6e786f73d46 (diff)
downloadlinux-872eb127e3a6cddcfca1410bb808d9b9bc773dc1.tar.gz
linux-872eb127e3a6cddcfca1410bb808d9b9bc773dc1.tar.bz2
linux-872eb127e3a6cddcfca1410bb808d9b9bc773dc1.zip
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 <willy@linux.intel.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r--fs/dax.c2
1 files changed, 1 insertions, 1 deletions
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