Skip to contentSkip to conversation

mm-damon-stat-deduplicate-intervals_goal-setup-in-damon_stat_build_ctx.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jan 21

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm/damon/stat: deduplicate intervals_goal setup in damon_stat_build_ctx()
has been removed from the -mm tree. Its filename was
mm-damon-stat-deduplicate-intervals_goal-setup-in-damon_stat_build_ctx.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: JaeJoon Jung <[email protected]>
Subject: mm/damon/stat: deduplicate intervals_goal setup in damon_stat_build_ctx()
Date: Mon, 15 Dec 2025 23:34:38 -0800

The damon_stat_build_ctx() function sets the values of intervals_goal structure members. These values are applied to damon_ctx in damon_set_attrs(). However, It is resetting the values that were already applied previously to the same values. I suggest removing this code as it constitutes duplicate execution.

---

 mm/damon/stat.c |    8 --------
 1 file changed, 8 deletions(-)
mm/damon/stat.c renamed from mm/damon/stat.c~mm-damon-stat-deduplicate-intervals_goal-setup-in-damon_stat_build_ctx +0 -8
@@ -173,14 +173,6 @@ static struct damon_ctx *damon_stat_buil
 	if (damon_set_attrs(ctx, &attrs))
 		goto free_out;
 
-	/*
-	 * auto-tune sampling and aggregation interval aiming 4% DAMON-observed
-	 * accesses ratio, keeping sampling interval in [5ms, 10s] range.
-	 */
-	ctx->attrs.intervals_goal = (struct damon_intervals_goal) {
-		.access_bp = 400, .aggrs = 3,
-		.min_sample_us = 5000, .max_sample_us = 10000000,
-	};
 	if (damon_select_ops(ctx, DAMON_OPS_PADDR))
 		goto free_out;
 

_

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