[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250706200018.42704-9-sj@kernel.org>
Date: Sun, 6 Jul 2025 13:00:12 -0700
From: SeongJae Park <sj@...nel.org>
To:
Cc: SeongJae Park <sj@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
damon@...ts.linux.dev,
kernel-team@...a.com,
linux-kernel@...r.kernel.org,
linux-mm@...ck.org
Subject: [RFC PATCH 08/14] 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.
Signed-off-by: SeongJae Park <sj@...nel.org>
---
mm/damon/core.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/mm/damon/core.c b/mm/damon/core.c
index 7a4dc76dd023..eaa2306ff324 100644
--- a/mm/damon/core.c
+++ b/mm/damon/core.c
@@ -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);
}
--
2.39.5
Powered by blists - more mailing lists