The patch titled Subject: mm: softdirty: keep bit when zapping file pte has been added to the -mm tree. Its filename is mm-softdirty-keep-bit-when-zapping-file-pte.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-softdirty-keep-bit-when-zapping-file-pte.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-softdirty-keep-bit-when-zapping-file-pte.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: Peter Feiner <pfeiner@xxxxxxxxxx> Subject: mm: softdirty: keep bit when zapping file pte Fixes the same bug as b43790eedd31e9 ("mm: softdirty: don't forget to save file map softdiry bit on unmap") and 9aed8614af5a05cd ("mm/memory.c: don't forget to set softdirty on file mapped fault") where the return value of pte_*mksoft_dirty was being ignored. To be sure that no other pte/pmd "mk" function return values were being ignored, I annotated the functions in arch/x86/include/asm/pgtable.h with __must_check and rebuilt. Signed-off-by: Peter Feiner <pfeiner@xxxxxxxxxx> Acked-by: Cyrill Gorcunov <gorcunov@xxxxxxxxxx> Cc: Pavel Emelyanov <xemul@xxxxxxxxxxxxx> Cc: Jamie Liu <jamieliu@xxxxxxxxxx> Cc: Hugh Dickins <hughd@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN mm/memory.c~mm-softdirty-keep-bit-when-zapping-file-pte mm/memory.c --- a/mm/memory.c~mm-softdirty-keep-bit-when-zapping-file-pte +++ a/mm/memory.c @@ -1127,7 +1127,7 @@ again: addr) != page->index) { pte_t ptfile = pgoff_to_pte(page->index); if (pte_soft_dirty(ptent)) - pte_file_mksoft_dirty(ptfile); + ptfile = pte_file_mksoft_dirty(ptfile); set_pte_at(mm, addr, pte, ptfile); } if (PageAnon(page)) _ Patches currently in -mm which might be from pfeiner@xxxxxxxxxx are mm-softdirty-addresses-before-vmas-in-pte-holes-arent-softdirty.patch mm-softdirty-keep-bit-when-zapping-file-pte.patch mm-softdirty-enable-write-notifications-on-vmas-after-vm_softdirty-cleared.patch mm-softdirty-unmapped-addresses-between-vmas-are-clean.patch mm-softdirty-unmapped-addresses-between-vmas-are-clean-v2.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