Commit 2f54908fae211 ("mm/damon/reclaim: detect and use fresh enabled and kdamond_pid values") introduced a typo in damon_reclaim_timer_fn() where '!=' was used instead of '==' (unlike damon_lru_sort_timer_fn()). This caused damon_reclaim to return early during the delayed work, breaking early boot parameter configuration like 'damon_reclaim.enabled=Y'. Fix this by changing '!=' to '=='. Fixes: 2f54908fae21 ("mm/damon/reclaim: detect and use fresh enabled and kdamond_pid values") Cc: # 6.1.x Reported-by: Yikai Zhao Signed-off-by: Liew Rui Yan --- mm/damon/reclaim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/damon/reclaim.c b/mm/damon/reclaim.c index 016cd8d83ca9..bb4b705d842c 100644 --- a/mm/damon/reclaim.c +++ b/mm/damon/reclaim.c @@ -198,7 +198,7 @@ static void damon_reclaim_timer_fn(struct work_struct *work) bool now_enabled; now_enabled = enabled; - if (damon_reclaim_enabled() != now_enabled) + if (damon_reclaim_enabled() == now_enabled) return; damon_reclaim_turn(now_enabled); } -- 2.55.0