The patch titled Subject: mm: thp: inc counter for collapsed shmem THP has been added to the -mm tree. Its filename is mm-thp-inc-counter-for-collapsed-shmem-thp.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-thp-inc-counter-for-collapsed-shmem-thp.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-thp-inc-counter-for-collapsed-shmem-thp.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/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Yang Shi <yang.shi@xxxxxxxxxxxxxxxxx> Subject: mm: thp: inc counter for collapsed shmem THP /sys/kernel/mm/transparent_hugepage/khugepaged/pages_collapsed is used to record the counter of collapsed THP, but it just gets inc'ed in anonymous THP collapse path, do this for shmem THP collapse too. Link: http://lkml.kernel.org/r/1529622949-75504-2-git-send-email-yang.shi@xxxxxxxxxxxxxxxxx Signed-off-by: Yang Shi <yang.shi@xxxxxxxxxxxxxxxxx> Cc: Hugh Dickins <hughd@xxxxxxxxxx> Cc: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx> Cc: Vlastimil Babka <vbabka@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- diff -puN mm/khugepaged.c~mm-thp-inc-counter-for-collapsed-shmem-thp mm/khugepaged.c --- a/mm/khugepaged.c~mm-thp-inc-counter-for-collapsed-shmem-thp +++ a/mm/khugepaged.c @@ -1522,6 +1522,8 @@ tree_unlocked: unlock_page(new_page); *hpage = NULL; + + khugepaged_pages_collapsed++; } else { /* Something went wrong: rollback changes to the radix-tree */ shmem_uncharge(mapping->host, nr_none); _ Patches currently in -mm which might be from yang.shi@xxxxxxxxxxxxxxxxx are doc-add-description-to-dirtytime_expire_seconds.patch thp-use-mm_file_counter-to-determine-update-which-rss-counter.patch mm-thp-register-mm-for-khugepaged-when-merging-vma-for-shmem.patch mm-thp-inc-counter-for-collapsed-shmem-thp.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