]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mm/damon/reclaim: use damon_initialized()
authorSeongJae Park <sj@kernel.org>
Tue, 16 Sep 2025 03:35:07 +0000 (20:35 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 21 Sep 2025 21:22:38 +0000 (14:22 -0700)
commit3f7a914ab9a5e46cf8aac7de270f02aa3f63de04
tree6cd8403513968f5224d55618e47e9dacbd0fbdcd
parentb663f17b738f4a9a9f599dff1bed8e4db519e6f8
mm/damon/reclaim: use damon_initialized()

DAMON_RECLAIM is assuming DAMON is ready to use in module_init time, and
uses its own hack to see if it is the time.  Use damon_initialized(),
which is a way for seeing if DAMON is ready to be used that is more
reliable and better to maintain instead of the hack.

Link: https://lkml.kernel.org/r/20250916033511.116366-4-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/reclaim.c