Skip to contentSkip to conversation

mm-damon-core-remove-unused-damon_targets_empty.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Oct 7

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm/damon/core: remove unused damon_targets_empty()
has been removed from the -mm tree. Its filename was
mm-damon-core-remove-unused-damon_targets_empty.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Cheng-Han Wu <[email protected]>
Subject: mm/damon/core: remove unused damon_targets_empty()
Date: Mon, 31 Aug 2026 07:57:21 -0700

Patch series "mm/damon/core: remove unused helper functions", v2.

Both damon_targets_empty() and damon_nr_running_ctxs() have had no in-tree users since commit 5ec4333b1967 ("mm/damon: remove DAMON debugfs interface") removed their remaining callers.

Remove the unused declarations and definitions.

This patch (of 2):

damon_targets_empty() has had no in-tree users since commit 5ec4333b1967 ("mm/damon: remove DAMON debugfs interface") removed its last caller.

Remove the unused declaration and definition.

---

 include/linux/damon.h |    1 -
 mm/damon/core.c       |    5 -----
 2 files changed, 6 deletions(-)
include/linux/damon.h renamed from include/linux/damon.h~mm-damon-core-remove-unused-damon_targets_empty +0 -1
@@ -1055,7 +1055,6 @@ int damos_commit_quota_goals(struct damo
 
 struct damon_target *damon_new_target(void);
 void damon_add_target(struct damon_ctx *ctx, struct damon_target *t);
-bool damon_targets_empty(struct damon_ctx *ctx);
 void damon_free_target(struct damon_target *t);
 void damon_destroy_target(struct damon_target *t, struct damon_ctx *ctx);
 unsigned int damon_nr_regions(struct damon_target *t);
mm/damon/core.c renamed from mm/damon/core.c~mm-damon-core-remove-unused-damon_targets_empty +0 -5
@@ -795,11 +795,6 @@ void damon_add_target(struct damon_ctx *
 	list_add_tail(&t->list, &ctx->adaptive_targets);
 }
 
-bool damon_targets_empty(struct damon_ctx *ctx)
-{
-	return list_empty(&ctx->adaptive_targets);
-}
-
 static void damon_del_target(struct damon_target *t)
 {
 	list_del(&t->list);

_

Patches currently in -mm which might be from [email protected] are