Commit 872eb127 authored by Matthew Wilcox's avatar Matthew Wilcox Committed by Al Viro

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: default avatarMatthew Wilcox <willy@linux.intel.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 44f4c054
...@@ -155,7 +155,7 @@ static ssize_t dax_io(struct inode *inode, struct iov_iter *iter, ...@@ -155,7 +155,7 @@ static ssize_t dax_io(struct inode *inode, struct iov_iter *iter,
} }
if (iov_iter_rw(iter) == WRITE) 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) else if (!hole)
len = copy_to_iter(addr, max - pos, iter); len = copy_to_iter(addr, max - pos, iter);
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment