mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
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>
This commit is contained in:
parent
cc9c1b8c20
commit
d4614161fb
|
|
@ -550,11 +550,6 @@ static void damon_destroy_targets(struct damon_ctx *ctx)
|
|||
{
|
||||
struct damon_target *t, *next_t;
|
||||
|
||||
if (ctx->ops.cleanup) {
|
||||
ctx->ops.cleanup(ctx);
|
||||
return;
|
||||
}
|
||||
|
||||
damon_for_each_target_safe(t, next_t, ctx)
|
||||
damon_destroy_target(t);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user