projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44f4c05
)
dax: Use copy_from_iter_nocache
author
Matthew Wilcox
<willy@linux.intel.com>
Fri, 3 Jul 2015 14:40:39 +0000
(10:40 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 4 Jul 2015 19:56:56 +0000
(15:56 -0400)
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>
fs/dax.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/dax.c
b/fs/dax.c
index 6f65f00e58ecdc695284de68b832f3822247f594..159f796afa858f257506ff8bde080c76e9144e5a 100644
(file)
--- 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