mm-damon-stat-use-damon_call-repeat-mode-instead-of-damon_callback.patch removed from -mm tree
The quilt patch titled
Subject: mm/damon/stat: use damon_call() repeat mode instead of damon_callback
has been removed from the -mm tree. Its filename was
mm-damon-stat-use-damon_call-repeat-mode-instead-of-damon_callback.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/stat: use damon_call() repeat mode instead of damon_callback
Date: Sat, 12 Jul 2025 12:50:05 -0700
DAMON_STAT uses damon_callback for periodically reading DAMON internal data. Use its alternative, damon_call() repeat mode.
---
mm/damon/stat.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-)
mm/damon/stat.c renamed from mm/damon/stat.c~mm-damon-stat-use-damon_call-repeat-mode-instead-of-damon_callback +14 -3
@@ -122,8 +122,9 @@ static void damon_stat_set_idletime_perckfree (sorted_regions); } -static int damon_stat_after_aggregation (struct damon_ctx *c) +static int damon_stat_damon_call_fn (void *data) { +struct damon_ctx *c = data;static unsigned long last_refresh_jiffies;/* avoid unnecessarily frequent stat update */
@@ -182,19 +183,29 @@ static struct damon_ctx *damon_stat_buildamon_add_target (ctx, target);if (damon_set_region_biggest_system_ram_default (target, &start, &end)) goto free_out; - ctx->callback.after_aggregation = damon_stat_after_aggregation;return ctx; free_out:damon_destroy_ctx (ctx);return NULL ; } +static struct damon_call_control call_control = { + .fn = damon_stat_damon_call_fn, + .repeat = true, +}; +static int damon_stat_start (void ) { +int err; + damon_stat_context =damon_stat_build_ctx ();if (!damon_stat_context)return -ENOMEM ; -return damon_start (&damon_stat_context,1 , true); + err =damon_start (&damon_stat_context,1 , true); +if (err) +return err; + call_control.data = damon_stat_context; +return damon_call (damon_stat_context, &call_control); }static void damon_stat_stop (void )
_
Patches currently in -mm which might be from [email protected] are
mm-damon-core-commit-damos_quota_goal-nid.patch mm-damon-sysfs-implement-refresh_ms-file-under-kdamond-directory.patch mm-damon-sysfs-implement-refresh_ms-file-internal-work.patch docs-admin-guide-mm-damon-usage-document-refresh_ms-file.patch docs-abi-damon-update-for-refresh_ms.patch