Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1176636

[PATCH v2 2/6] dax: Use copy_from_iter_nocache

From Matthew Wilcox <matthew.r.wilcox@intel.com>
Newsgroups linux.kernel
Subject [PATCH v2 2/6] dax: Use copy_from_iter_nocache
Date 2015-07-03 16:50 +0200
Message-ID <pIarU-1ha-27@gated-at.bofh.it> (permalink)
References <pIarT-1ha-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Matthew Wilcox <willy@linux.intel.com>

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>
---
 fs/dax.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/dax.c b/fs/dax.c
index 99b5fbc..eaa9e06 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
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/6] Miscellaneous DAX patches, take 2 Matthew Wilcox <matthew.r.wilcox@intel.com> - 2015-07-03 16:50 +0200
  [PATCH v2 6/6] dax: bdev_direct_access() may sleep Matthew Wilcox <matthew.r.wilcox@intel.com> - 2015-07-03 16:50 +0200
  [PATCH v2 2/6] dax: Use copy_from_iter_nocache Matthew Wilcox <matthew.r.wilcox@intel.com> - 2015-07-03 16:50 +0200
  [PATCH v2 5/6] block: Add support for DAX reads/writes to block devices Matthew Wilcox <matthew.r.wilcox@intel.com> - 2015-07-03 16:50 +0200

csiph-web