]> git.ipfire.org Git - thirdparty/linux.git/commit
mm/damon/reclaim: reset enabled when DAMON start failed
authorSeongJae Park <sj@kernel.org>
Sun, 6 Jul 2025 19:32:05 +0000 (12:32 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 13 Jul 2025 23:38:34 +0000 (16:38 -0700)
commit737e40d5eb2f6507113285cb52c50a4a6b01f44a
tree65e347e46f5f4c7d724c8302780c6458d33bb118
parent964314344eab7bc43e38a32be281c5ea0609773b
mm/damon/reclaim: reset enabled when DAMON start failed

When the startup fails, 'enabled' parameter is not reset.  As a result,
users show the parameter 'Y' while it is not really working.  Fix it by
resetting 'enabled' to 'false' when the work is failed.

Link: https://lkml.kernel.org/r/20250706193207.39810-5-sj@kernel.org
Fixes: 04e98764befa ("mm/damon/reclaim: enable and disable synchronously")
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/reclaim.c