]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mm/damon/ops-common: remove redudnant mmu notifier call in pmdp mkold
authorqinyu <qin.yuA@h3c.com>
Tue, 3 Feb 2026 09:54:00 +0000 (17:54 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 24 Mar 2026 21:38:25 +0000 (14:38 -0700)
commitb8a4b088381875ff1a93c0c2d5a926b30b1bfe31
tree4d195e63fba42560e52e74974570cc6d89bd6e58
parent7e74dd031620549174eb287649aa12970ef56589
mm/damon/ops-common: remove redudnant mmu notifier call in pmdp mkold

Currently, mmu_notifier_clear_young() is called immediately after
pmdp_clear_young_notify(), which already calls mmu_notifier_clear_young()
internally.  This results in a redundant notifier call.

Replace pmdp_clear_young_notify() with the non-notify variant to avoid the
duplicate call and make the pmdp path consistent with the corresponding
ptep_mkold() code.

Link: https://lkml.kernel.org/r/20260203095400.2465255-1-qin.yuA@h3c.com
Signed-off-by: qinyu <qin.yuA@h3c.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/ops-common.c