mm-damon-core-ask-apply_probes-ops-callback-to-set-sampling-address.patch removed from -mm tree
The quilt patch titled
Subject: mm/damon/core: ask apply_probes() ops callback to set sampling address
has been removed from the -mm tree. Its filename was
mm-damon-core-ask-apply_probes-ops-callback-to-set-sampling-address.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: SJ Park <[email protected]>
Subject: mm/damon/core: ask apply_probes() ops callback to set sampling address
Date: Fri, 10 Jul 2026 06:46:31 -0700
prepare_access_checks() DAMON ops callback sets the monitoring sampling address per region. In future, DAMON will be able to call only apply_probes(). In this case, applyy_probes() may need to do the sampling address setup, to minimize unnecessary regions iteration. Update the protocol for the request.
---
include/linux/damon.h | 5 +++-- mm/damon/core.c | 2 +- mm/damon/paddr.c | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-)
include/linux/damon.h renamed from include/linux/damon.h~mm-damon-core-ask-apply_probes-ops-callback-to-set-sampling-address +3 -2
@@ -647,7 +647,8 @@ enum damon_ops_id {* It should also return max number of observed accesses that made as a result * of its update. The value will be used for regions adjustment threshold. * @apply_probes should apply the data attribute probes to each region and -* accordingly update the probe hits counter of the region. +* accordingly update the probe hits counter of the region. It should also +* set &damon_region->sampling_addr of each region if ``set_samples`` is true. * @get_scheme_score should return the priority score of a region for a scheme * as an integer in [0, &DAMOS_MAX_SCORE]. * @apply_scheme is called from @kdamond when a region for user provided
@@ -665,7 +666,7 @@ struct damon_operations {void (*update)(struct damon_ctx *context);void (*prepare_access_checks)(struct damon_ctx *context);unsigned int (*check_accesses)(struct damon_ctx *context); -void (*apply_probes)(struct damon_ctx *context); +void (*apply_probes)(struct damon_ctx *context,bool set_samples);int (*get_scheme_score)(struct damon_ctx *context,struct damon_region *r,struct damos *scheme); unsigned long (*apply_scheme)(struct damon_ctx *context,
mm/damon/core.c renamed from mm/damon/core.c~mm-damon-core-ask-apply_probes-ops-callback-to-set-sampling-address +1 -1
@@ -3692,7 +3692,7 @@ static int kdamond_fn(void *data)if (ctx->ops.check_accesses) max_nr_accesses = ctx->ops.check_accesses (ctx);if (ctx->ops.apply_probes) - ctx->ops.apply_probes (ctx); + ctx->ops.apply_probes (ctx, false);if (time_after_eq (ctx->passed_sample_intervals, next_aggregation_sis)) {
mm/damon/paddr.c renamed from mm/damon/paddr.c~mm-damon-core-ask-apply_probes-ops-callback-to-set-sampling-address +1 -1
@@ -166,7 +166,7 @@ static bool damon_pa_filter_pass(phys_adreturn pass; } -static void damon_pa_apply_probes (struct damon_ctx *ctx) +static void damon_pa_apply_probes (struct damon_ctx *ctx,bool set_samples) {struct damon_target *t;struct damon_region *r;
_
Patches currently in -mm which might be from [email protected] are
mm-damon-adjust-isolated-pages-stat-for-damos_migrate_hotcold.patch samples-damon-mtier-error-out-for-zero-quota-goal-target-values.patch mm-damon-lru_sort-error-out-for-10000-active_mem_bp.patch mm-damon-reclaim-skip-damon_call-if-ctx-has-not-started.patch mm-damon-lru_sort-skip-damon_call-if-ctx-has-not-started.patch mm-damon-core-skip-aging-from-repeated-aggressive-merging.patch mm-damon-core-hide-private-damon_region-fields.patch mm-damon-core-hide-private-damon_target-fields.patch mm-damon-core-hide-private-damos_quota_goal-fields.patch mm-damon-core-hide-private-damos_quota-fields.patch mm-damon-core-hide-private-damos_filter-fields.patch mm-damon-core-hide-private-damos-fields.patch mm-damon-core-hide-private-damon_filter-fields.patch mm-damon-core-hide-private-damon_probe-fields.patch mm-damon-sysfs-do-not-directly-access-damon_ctx-ops.patch mm-damon-core-hide-core-private-damon_ctx-fields.patch mm-damon-core-avoid-infinite-kdamond_merge_regions-internal-loop.patch mm-damon-tests-core-kunit-catch-test-failure-in-test_merge_regions_of.patch mm-damon-vaddr-drop-last-same-folio-access-check-optimization.patch mm-damon-paddr-drop-last-same-folio-access-check-reuse-optimization.patch mm-damon-sysfs-read-addr_unit-only-once-in-damon_sysfs_apply_inputs.patch mm-damon-sysfs-read-ops_id-only-once-in-damon_sysfs_apply_inputs.patch mm-damon-core-initialize-damos-last_applied.patch mm-damon-core-kunit-check-region-count-before-testing-in-split_at.patch mm-damon-vaddr-kunit-check-region-count-in-three_regions-test.patch mm-damon-core-kunit-handle-region-split-failure-in-filter_out.patch mm-damon-core-kunit-skip-wrong-dest-walk-in-commit_dests_for.patch mm-damon-core-kunit-skip-wrong-quota-goal-walk-in-commit_quota_goals.patch mm-damon-core-kunit-skip-wrong-region-walk-in-commit_target_regions.patch mm-damon-ops-common-use-nr_accesses-moving-sum-for-quota-score.patch mm-damon-core-handle-region-split-failure-in-apply_min_nr_regions.patch