mm-damon-sysfs-implement-probe-weight-file.patch removed from -mm tree
The quilt patch titled
Subject: mm/damon/sysfs: implement probe/weight file
has been removed from the -mm tree. Its filename was
mm-damon-sysfs-implement-probe-weight-file.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/sysfs: implement probe/weight file
Date: Fri, 10 Jul 2026 06:46:45 -0700
Implement a new sysfs file, 'weight', under probe directory. Users will be able to set the probe weight and enable the attributes only monitoring using it.
---
mm/damon/sysfs.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)
mm/damon/sysfs.c renamed from mm/damon/sysfs.c~mm-damon-sysfs-implement-probe-weight-file +25 -0
@@ -1065,6 +1065,7 @@ static const struct kobj_type damon_sysfstruct damon_sysfs_probe {struct kobject kobj; +unsigned int weight;struct damon_sysfs_filters *filters; };
@@ -1100,12 +1101,35 @@ static void damon_sysfs_probe_rm_dirs(st } } +static ssize_t weight_show (struct kobject *kobj,struct kobj_attribute *attr, +char *buf) +{ +struct damon_sysfs_probe *probe =container_of (kobj, + struct damon_sysfs_probe, kobj); + +return sysfs_emit (buf,"%u\n" , probe->weight); +} + +static ssize_t weight_store (struct kobject *kobj, +struct kobj_attribute *attr,const char *buf,size_t count) +{ +struct damon_sysfs_probe *probe =container_of (kobj, + struct damon_sysfs_probe, kobj); +int err =kstrtouint (buf,0 , &probe->weight); + +return err ? err : count; +} +static void damon_sysfs_probe_release (struct kobject *kobj) {kfree (container_of(kobj ,struct damon_sysfs_probe ,kobj )); } +static struct kobj_attribute damon_sysfs_probe_weight_attr = +__ATTR_RW_MODE (weight,0600 ); +static struct attribute *damon_sysfs_probe_attrs[] = { + &damon_sysfs_probe_weight_attr.attr,NULL , };ATTRIBUTE_GROUPS (damon_sysfs_probe);
@@ -1965,6 +1989,7 @@ static int damon_sysfs_set_probes(structreturn -ENOMEM ;damon_add_probe (ctx, p); sys_probe = sys_probes->probes_arr[i]; + p->weight = sys_probe->weight; err =damon_sysfs_set_probe (p, sys_probe);if (err)return err;
_
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