The patch titled Subject: mm-support-madvisemadv_free-fix has been added to the -mm tree. Its filename is mm-support-madvisemadv_free-fix.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-support-madvisemadv_free-fix.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-support-madvisemadv_free-fix.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: Minchan Kim <minchan@xxxxxxxxxx> Subject: mm-support-madvisemadv_free-fix Cc: Mika Penttil <mika.penttila@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/madvise.c | 2 ++ 1 file changed, 2 insertions(+) diff -puN mm/madvise.c~mm-support-madvisemadv_free-fix mm/madvise.c --- a/mm/madvise.c~mm-support-madvisemadv_free-fix +++ a/mm/madvise.c @@ -307,6 +307,8 @@ static int madvise_free_pte_range(pmd_t pte_offset_map_lock(mm, pmd, addr, &ptl); goto out; } + put_page(page); + unlock_page(page); pte = pte_offset_map_lock(mm, pmd, addr, &ptl); pte--; addr -= PAGE_SIZE; _ Patches currently in -mm which might be from minchan@xxxxxxxxxx are zram-pass-gfp-from-zcomp-frontend-to-backend.patch mm-support-madvisemadv_free.patch mm-support-madvisemadv_free-fix.patch mm-define-madv_free-for-some-arches.patch mm-free-swp_entry-in-madvise_free.patch mm-move-lazily-freed-pages-to-inactive-list.patch mm-mark-stable-page-dirty-in-ksm.patch x86-add-pmd_-for-thp.patch sparc-add-pmd_-for-thp.patch powerpc-add-pmd_-for-thp.patch arm-add-pmd_mkclean-for-thp.patch arm64-add-pmd_mkclean-for-thp.patch mm-dont-split-thp-page-when-syscall-is-called.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