The patch titled Subject: mm: mark head page dirty in split_huge_page has been removed from the -mm tree. Its filename was thp-reintroduce-split_huge_page-fix.patch This patch was dropped because an alternative patch was merged ------------------------------------------------------ From: Minchan Kim <minchan@xxxxxxxxxx> Subject: mm: mark head page dirty in split_huge_page In thp split in old THP refcount, we mappped all of pages (ie, head + tails) to pte_mkdirty and mark PG_flags to every tail pages. But with THP refcount redesign, we can lose dirty bit in page table and PG_dirty for head page if we want to free the THP page using migration_entry. It ends up discarding head page by madvise_free suddenly. This patch fixes it by mark the head page PG_dirty when VM splits the THP page. Signed-off-by: Minchan Kim <minchan@xxxxxxxxxx> Cc: "Kirill A. Shutemov" <kirill@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/huge_memory.c | 1 + 1 file changed, 1 insertion(+) diff -puN mm/huge_memory.c~thp-reintroduce-split_huge_page-fix mm/huge_memory.c --- a/mm/huge_memory.c~thp-reintroduce-split_huge_page-fix +++ a/mm/huge_memory.c @@ -3156,6 +3156,7 @@ static void __split_huge_page(struct pag atomic_sub(tail_mapcount, &head->_count); ClearPageCompound(head); + SetPageDirty(head); spin_unlock_irq(&zone->lru_lock); unfreeze_page(page_anon_vma(head), head); _ Patches currently in -mm which might be from minchan@xxxxxxxxxx are thp-use-is_zero_pfn-only-after-pte_present-check.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_-for-thp.patch mm-support-madvisemadv_free.patch mm-support-madvisemadv_free-fix.patch mm-support-madvisemadv_free-fix-5.patch mm-support-madvisemadv_free-fix-6.patch mm-mark-stable-page-dirty-in-ksm.patch mm-dont-split-thp-page-when-syscall-is-called.patch mm-dont-split-thp-page-when-syscall-is-called-fix-2.patch mm-dont-split-thp-page-when-syscall-is-called-fix-5.patch mm-dont-split-thp-page-when-syscall-is-called-fix-6.patch mm-free-swp_entry-in-madvise_free.patch mm-move-lazy-free-pages-to-inactive-list.patch mm-move-lazy-free-pages-to-inactive-list-fix.patch mm-move-lazy-free-pages-to-inactive-list-fix-fix-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