[RFC PATCH v2 0/6] mm/damon: misc improvements/cleanups for core, vaddr, sysfs and tests
From: SJ Park
Date: Sun Nov 01 2026 - 12:18:35 EST
Refactor code, optimize code speed, and add missing feature supports on
various areas of DAMON.
Optimize the efficiency of vaddr damos_migrate action under filter
failures with patch 1. Use damos->last_applied on damos_migrate action
in vaddr and support sz_filter_passed for damos_migrate action in vaddr,
respectively with patch 2 and 3. Drop a redundant and racy quota goal
target value validation in sysfs, in favor of that in the core layer,
with patch 4. Drop unused variables and imports from selftests with
patch 5 and 6.
Changes from RFC
- RFC: https://lore.kernel.org/20261031202614.96036-1-sj@xxxxxxxxxx
- Drop charge_target_from fixup consolidation.
- Add a patch for using last_applied on vaddr migrate action.
- Add missed damos_va_migrate_private->sz_filter_passed setup.
- Fix wrong commit message for unused imports removal.
SJ Park (6):
mm/damon/vaddr: advance migration attempt in folio level for filter
out
mm/damon/vaddr: use damos->last_applied for migrate action
mm/damon/vaddr: implement sz_filter_passed for migrate_{hot,cold}
action
mm/damon/sysfs-schemes: drop redundant and racy zero target_value
check
selftests/damon/damos_apply_interval: remove unused variables
selftests/damon: remove unused imports of os and sys modules
mm/damon/sysfs-schemes.c | 3 --
mm/damon/vaddr.c | 28 +++++++++++--------
.../selftests/damon/damos_apply_interval.py | 2 --
.../damon/sysfs_no_op_commit_break.py | 1 -
...sysfs_update_schemes_tried_regions_hang.py | 1 -
5 files changed, 17 insertions(+), 18 deletions(-)
base-commit: 807c0ce92f8424fbb7eb13e7ea48746f68b24dca
--
2.47.3