v1 2026-11-01

DAMON core/vaddr 清理与优化 · v1

DAMON 重构:集中修复 quota charge 指针,优化 vaddr 迁移过滤并新增 sz_filter_passed。

原始补丁链接

子 Patch(6)

1/6
mm/damon/core: handle invalid target in damos_fix_stale_charge_pointers()
[mm/damon/core: handle invalid target in damos_fix_stale_charge_pointers()] The fixup of DAMOS quota charge pointers (damos->charge_{target,addr}_from) for removed targets and regions is done in damos
2/6
mm/damon/vaddr: advance migration attempt in folio level for filter out
damos_va_migrate_pmd_entry() finds folios to migrate under the given pmd, using a loop for the pmd address range. The loop advances in page size if a given folio is excluded by DAMOS ops filters. DA
3/6
mm/damon/vaddr: implement sz_filter_passed for migrate_{hot,cold} action
[mm/damon/vaddr: implement sz_filter_passed for migrate_{hot,cold} action] Support of DAMOS ops filter and sz_filter_passed support is up to each operation set. DAMON_VADDR supports both for only dam
4/6
mm/damon/sysfs-schemes: drop redundant and racy zero target_value check
DAMON sysfs interface disallowed zero target_value because it could result in divide-by-zero in damos_quota_store(). Because similar checks were duplicated to other DAMON API callers, a patch series
5/6
selftests/damon/damos_apply_interval: remove unused variables
wss_collected and nr_quota_exceeds in damos_apply_interval.py are assigned to but never used. Remove. The issue is found using flake8. Signed-off-by: SJ Park sj@kernel.org — tools/testing/self
6/6
selftests/damon: remove unused imports of os and sys modules
[selftests/damon: remove unused imports of os and sys modules] sysfs_no_op_commit_break.py imports os module but never uses it. sysfs_update_schemes_tried_regions_hang imports the sys module but never