]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mm/damon/core: do not call ops.cleanup() when destroying targets
authorSeongJae Park <sj@kernel.org>
Sat, 12 Jul 2025 19:50:10 +0000 (12:50 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 20 Jul 2025 01:59:55 +0000 (18:59 -0700)
commitd4614161fb6d4a56ead3e8e3e9cafa83a54747e4
treec07bce0f19655aa5dac2812a6bd04905571ea715
parentcc9c1b8c205beda5915ce935463f15cc05ff9f49
mm/damon/core: do not call ops.cleanup() when destroying targets

damon_operations.cleanup() is documented to be called for kdamond
termination, but also being called for targets destruction, which is done
for any damon_ctx destruction.  Nobody is using the callback for now,
though.  Remove the cleanup() call under the destruction.

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