Thread (39 messages) 39 messages, 6 authors, 2015-11-20

Re: [PATCH v2 02/11] mm: add pmd_mkclean()

From: Ross Zwisler <hidden>
Date: 2015-11-17 17:52:43
Also in: linux-fsdevel, linux-mm, linux-xfs, lkml, nvdimm

On Fri, Nov 13, 2015 at 05:02:48PM -0800, Dave Hansen wrote:
On 11/13/2015 04:06 PM, Ross Zwisler wrote:
quoted
+static inline pmd_t pmd_mkclean(pmd_t pmd)
+{
+	return pmd_clear_flags(pmd, _PAGE_DIRTY | _PAGE_SOFT_DIRTY);
+}
pte_mkclean() doesn't clear _PAGE_SOFT_DIRTY.  What the thought behind
doing it here?
I just wrote it to undo the work done by pmd_mkdirty() - you're right, it
should mirror the work done by pte_mkclean() and not clear _PAGE_SOFT_DIRTY.
I'll fix this for v3, thanks!

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help