[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1452599025-25489-1-git-send-email-chenjie6@huawei.com>
Date: Tue, 12 Jan 2016 19:43:45 +0800
From: <chenjie6@...wei.com>
To: Alexander Viro <viro@...iv.linux.org.uk>,
Matthew Wilcox <willy@...ux.intel.com>,
<linux-fsdevel@...r.kernel.org>, <zhihui.gao@...wei.com>
CC: <linux-kernel@...r.kernel.org>, <lizefan@...wei.com>,
chenjie <chenjie6@...wei.com>, <stable@...r.kernel.org>
Subject: [PATCH] bugfix dax fault page should be no cache
From: chenjie <chenjie6@...wei.com>
We show the pte:
*pte=01600000159c8fd3
The page should be no_cache attr,it will be better.
Cc: <stable@...r.kernel.org>
Signed-off-by: chenjie <chenjie6@...wei.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
Powered by blists - more mailing lists