linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: <chenjie6@huawei.com>
To: Alexander Viro <viro@zeniv.linux.org.uk>,
	Matthew Wilcox <willy@linux.intel.com>,
	<linux-fsdevel@vger.kernel.org>, <zhihui.gao@huawei.com>
Cc: <linux-kernel@vger.kernel.org>, <lizefan@huawei.com>,
	chenjie <chenjie6@huawei.com>, <stable@vger.kernel.org>
Subject: [PATCH] bugfix dax fault page should be no cache
Date: Tue, 12 Jan 2016 19:43:45 +0800	[thread overview]
Message-ID: <1452599025-25489-1-git-send-email-chenjie6@huawei.com> (raw)

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


             reply	other threads:[~2016-01-12 11:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-12 11:43 chenjie6 [this message]
2016-01-12 12:51 ` [PATCH] bugfix dax fault page should be no cache Matthew Wilcox
2016-01-13  3:47   ` Chenjie (K)
2016-01-13 16:32     ` Matthew Wilcox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1452599025-25489-1-git-send-email-chenjie6@huawei.com \
    --to=chenjie6@huawei.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lizefan@huawei.com \
    --cc=stable@vger.kernel.org \
    --cc=viro@zeniv.linux.org.uk \
    --cc=willy@linux.intel.com \
    --cc=zhihui.gao@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).