v1
2026-10-06
DAMOS 溢出修复与代码清理 · v1
DAMON 系列修复 32 位 age_in_sec 溢出,hugetlb 处理改用 damon_get_monitor_folio(),并新增跳过末 region 的 kunit 测试。
原始补丁链接
子 Patch(3)
1/3
mm/damon/ops-common: fix age_in_sec overflow on 32-bit
From: Jaeyeon Lee jaeyeon.lee.dev@gmail.com damon_hot_score() calculates the age of a region by multiplying r->age and the aggregation interval. On 32-bit architectures, unsigned long is 32 bits,
2/3
mm/damon: use damon_get_monitor_folio() for hugetlb entries
From: Gregory Price gourry@gourry.net Hugetlb folio acquisition is open-coded in three places: - damon_hugetlb_mkold() - damon_young_hugetlb_entry() - damon_va_probe_hugetlb_entry() DAMON al
3/3
mm/damon/tests/core-kunit: add test for unconditionally skipping the last region
From: Liew Rui Yan aethernet65535@gmail.com Commit b3723b596b54 (“mm/damon/core: fix unconditionally skip last region”) fixed a minor bug. Add a KUnit test case to cover this behavior and prevent