The patch titled Subject: mm/memory.c: remove unused code from do_wp_page() has been added to the -mm tree. Its filename is mm-memoryc-remove-unused-code-from-do_wp_page.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: Dominik Dingel <dingel@xxxxxxxxxxxxxxxxxx> Subject: mm/memory.c: remove unused code from do_wp_page() page_mkwrite is initalized with zero and only set once, from that point exists no way to get to the oom or oom_free_new labels. Signed-off-by: Dominik Dingel <dingel@xxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/memory.c | 4 ---- 1 file changed, 4 deletions(-) diff -puN mm/memory.c~mm-memoryc-remove-unused-code-from-do_wp_page mm/memory.c --- a/mm/memory.c~mm-memoryc-remove-unused-code-from-do_wp_page +++ a/mm/memory.c @@ -2781,10 +2781,6 @@ oom_free_new: page_cache_release(new_page); oom: if (old_page) { - if (page_mkwrite) { - unlock_page(old_page); - page_cache_release(old_page); - } page_cache_release(old_page); } return VM_FAULT_OOM; _ Patches currently in -mm which might be from dingel@xxxxxxxxxxxxxxxxxx are mm-memoryc-remove-unused-code-from-do_wp_page.patch mm-memoryc-remove-unused-code-from-do_wp_page-fix.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