mm-damon-core-add-damon_del_region-debug_sanity-check.patch removed from -mm tree
The quilt patch titled
Subject: mm/damon/core: add damon_del_region() debug_sanity check
has been removed from the -mm tree. Its filename was
mm-damon-core-add-damon_del_region-debug_sanity-check.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: add damon_del_region() debug_sanity check
Date: Fri, 6 Mar 2026 07:29:06 -0800
damon_del_region() should be called for targets that have one or more regions. Add a sanity check for that under CONFIG_DAMON_DEBUG_SANITY.
---
mm/damon/core.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)
mm/damon/core.c renamed from mm/damon/core.c~mm-damon-core-add-damon_del_region-debug_sanity-check +13 -0
@@ -152,8 +152,21 @@ void damon_add_region(struct damon_regio t->nr_regions++; } +#ifdef CONFIG_DAMON_DEBUG_SANITY +static void damon_verify_del_region (struct damon_target *t) +{ +WARN_ONCE (t->nr_regions ==0 ,"t->nr_regions == 0\n" ); +} +#else +static void damon_verify_del_region (struct damon_target *t) +{ +} +#endif +static void damon_del_region (struct damon_region *r,struct damon_target *t) { +damon_verify_del_region (t); +list_del (&r->list); t->nr_regions--; }
_
Patches currently in -mm which might be from [email protected] are
mm-damon-sysfs-dealloc-repeat_call_control-if-damon_call-fails.patch