Skip to content

Commit 872eb12

Browse files
Matthew WilcoxAl Viro
authored andcommitted
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 <[email protected]> Signed-off-by: Al Viro <[email protected]>
1 parent 44f4c05 commit 872eb12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/dax.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ static ssize_t dax_io(struct inode *inode, struct iov_iter *iter,
155155
}
156156

157157
if (iov_iter_rw(iter) == WRITE)
158-
len = copy_from_iter(addr, max - pos, iter);
158+
len = copy_from_iter_nocache(addr, max - pos, iter);
159159
else if (!hole)
160160
len = copy_to_iter(addr, max - pos, iter);
161161
else

0 commit comments

Comments
 (0)