The patch titled Subject: mm/memory.c: don't forget to set softdirty on file mapped fault has been added to the -mm tree. Its filename is mm-dont-forget-to-set-softdirty-on-file-mapped-fault.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-dont-forget-to-set-softdirty-on-file-mapped-fault.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-dont-forget-to-set-softdirty-on-file-mapped-fault.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Cyrill Gorcunov <gorcunov@xxxxxxxxx> Subject: mm/memory.c: don't forget to set softdirty on file mapped fault Otherwise we may not notice that pte was softdirty because pte_mksoft_dirty helper _returns_ new pte but not modifies argument. Signed-off-by: Cyrill Gorcunov <gorcunov@xxxxxxxxxx> Acked-by: Pavel Emelyanov <xemul@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN mm/memory.c~mm-dont-forget-to-set-softdirty-on-file-mapped-fault mm/memory.c --- a/mm/memory.c~mm-dont-forget-to-set-softdirty-on-file-mapped-fault +++ a/mm/memory.c @@ -2746,7 +2746,7 @@ void do_set_pte(struct vm_area_struct *v if (write) entry = maybe_mkwrite(pte_mkdirty(entry), vma); else if (pte_file(*pte) && pte_file_soft_dirty(*pte)) - pte_mksoft_dirty(entry); + entry = pte_mksoft_dirty(entry); if (anon) { inc_mm_counter_fast(vma->vm_mm, MM_ANONPAGES); page_add_new_anon_rmap(page, vma, address); _ Patches currently in -mm which might be from gorcunov@xxxxxxxxx are mm-dont-forget-to-set-softdirty-on-file-mapped-fault.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html