lkml.org 
[lkml]   [2016]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] bugfix dax fault page should be no cache
Date
From: chenjie <chenjie6@huawei.com>

We show the pte:
*pte=01600000159c8fd3
The page should be no_cache attr,it will be better.

Cc: <stable@vger.kernel.org>
Signed-off-by: chenjie <chenjie6@huawei.com>
---
fs/dax.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/fs/dax.c b/fs/dax.c
index 43671b6..179ced6 100644
--- a/fs/dax.c
+++ b/fs/dax.c
@@ -328,6 +328,8 @@ static int dax_insert_mapping(struct inode *inode, struct buffer_head *bh,
wmb_pmem();
}

+ vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot);
+
error = vm_insert_mixed(vma, vaddr, pfn);

out:
--
1.8.0
\
 
 \ /
  Last update: 2016-01-12 05:21    [W:0.033 / U:0.396 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site