The patch titled Subject: mm/damon/core: remove duplicate check about THP has been added to the -mm mm-unstable branch. Its filename is mm-damon-core-remove-duplicate-check-about-thp.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-damon-core-remove-duplicate-check-about-thp.patch This patch will later appear in the mm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm 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 via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Xin Hao <xhao@xxxxxxxxxxxxxxxxx> Subject: mm/damon/core: remove duplicate check about THP Date: Thu, 15 Sep 2022 22:22:37 +0800 In damon_young_pmd_entry(), it calls pmd_trans_huge() to check whether the OS supports THP, if CONFIG_TRANSPARENT_HUGEPAGE is not included, the pmd_trans_huge() will return 0. Link: https://lkml.kernel.org/r/20220915142237.92529-2-xhao@xxxxxxxxxxxxxxxxx Signed-off-by: Xin Hao <xhao@xxxxxxxxxxxxxxxxx> Cc: SeongJae Park <sj@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/damon/vaddr.c | 2 -- 1 file changed, 2 deletions(-) --- a/mm/damon/vaddr.c~mm-damon-core-remove-duplicate-check-about-thp +++ a/mm/damon/vaddr.c @@ -434,7 +434,6 @@ static int damon_young_pmd_entry(pmd_t * struct page *page; struct damon_young_walk_private *priv = walk->private; -#ifdef CONFIG_TRANSPARENT_HUGEPAGE if (pmd_trans_huge(*pmd)) { ptl = pmd_lock(walk->mm, pmd); if (!pmd_present(*pmd)) { @@ -462,7 +461,6 @@ huge_out: } regular_page: -#endif /* CONFIG_TRANSPARENT_HUGEPAGE */ if (pmd_none(*pmd) || unlikely(pmd_bad(*pmd))) return -EINVAL; _ Patches currently in -mm which might be from xhao@xxxxxxxxxxxxxxxxx are mm-damon-simply-damon_ctx-check-in-damon_sysfs_before_terminate.patch mm-damon-remove-duplicate-get_monitoring_region-definitions.patch mm-damon-sysfs-change-few-functions-execute-order.patch mm-damon-simplify-scheme-create-in-damon_lru_sort_apply_parameters.patch mm-damon-sysfs-avoid-call-damon_target_has_pid-repeatedly.patch mm-damon-core-remove-duplicate-check-about-thp.patch