[PATCH] bugfix dax fault page should be no cache

From: chenjie6
Date: Mon Jan 11 2016 - 22:41:34 EST


From: chenjie <chenjie6@xxxxxxxxxx>

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

Cc: <stable@xxxxxxxxxxxxxxx>
Signed-off-by: chenjie <chenjie6@xxxxxxxxxx>
---
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