]> git.ipfire.org Git - thirdparty/linux.git/commit
mm/damon/lru_sort: reset enabled when DAMON start failed
authorSeongJae Park <sj@kernel.org>
Sun, 6 Jul 2025 19:32:06 +0000 (12:32 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 13 Jul 2025 23:38:34 +0000 (16:38 -0700)
commitb91b82e241822ef1f287c3a8214f7bdeef4e85b2
tree1cacba8300c770c9f8202487dffe3d3f7d589672
parent737e40d5eb2f6507113285cb52c50a4a6b01f44a
mm/damon/lru_sort: 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-6-sj@kernel.org
Fixes: 7a034fbba336 ("mm/damon/lru_sort: enable and disable synchronously")
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/lru_sort.c