Skip to contentSkip to conversation

mm-damon-core-hide-damon_destroy_region.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jun 2

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm/damon/core: hide damon_destroy_region()
has been removed from the -mm tree. Its filename was
mm-damon-core-hide-damon_destroy_region.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: SeongJae Park <[email protected]>
Subject: mm/damon/core: hide damon_destroy_region()
Date: Fri, 22 May 2026 08:40:18 -0700

damon_destroy_region() is being used by only DAMON core, but exposed to DAMON API callers. Exposing something that is not really being used by others will only increase the maintenance cost. Hide it.

---

 include/linux/damon.h |    1 -
 mm/damon/core.c       |    3 ++-
 2 files changed, 2 insertions(+), 2 deletions(-)
include/linux/damon.h renamed from include/linux/damon.h~mm-damon-core-hide-damon_destroy_region +0 -1
@@ -1013,7 +1013,6 @@ void damon_add_probe(struct damon_ctx *c
 
 struct damon_region *damon_new_region(unsigned long start, unsigned long end);
 
-void damon_destroy_region(struct damon_region *r, struct damon_target *t);
 int damon_set_regions(struct damon_target *t, struct damon_addr_range *ranges,
 		unsigned int nr_ranges, unsigned long min_region_sz);
 void damon_update_region_access_rate(struct damon_region *r, bool accessed,
mm/damon/core.c renamed from mm/damon/core.c~mm-damon-core-hide-damon_destroy_region +2 -1
@@ -291,7 +291,8 @@ static void damon_free_region(struct dam
 	kmem_cache_free(damon_region_cache, r);
 }
 
-void damon_destroy_region(struct damon_region *r, struct damon_target *t)
+static void damon_destroy_region(struct damon_region *r,
+		struct damon_target *t)
 {
 	damon_del_region(r, t);
 	damon_free_region(r);

_

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

mm-damon-reclaim-handle-ctx-allocation-failure.patch mm-damonn-lru_sort-handle-ctx-allocation-failure.patch maintainers-add-testing-abi-documents-for-mm.patch