Skip to content

Commit

Permalink
dax: Use copy_from_iter_nocache
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Matthew Wilcox authored and Al Viro committed Jul 4, 2015
1 parent 44f4c05 commit 872eb12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/dax.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 872eb12

Please sign in to comment.