v4
2026-09-10
swapoff扫描跳过空簇 · v4
Youngjun Park v4 系列优化 swapoff 扫描,find_next_to_unuse() 通过读取 per-cluster 计数器跳过空 cluster,避免逐项检查。
原始补丁链接
子 Patch(2)
1/2
mm/swap: fix stale comment on swap_info_struct::cluster_info
修正 swap_info_struct::cluster_info 的过时注释,setup_swap_clusters_info() 实际为所有 swap area 分配 cluster_info,而非仅 SSD。
2/2
mm/swap: scan by cluster in find_next_to_unuse()
On Wed, Sep 9, 2026 at 9:16 AM Youngjun Park youngjun.park@lge.com wrote: > > find_next_to_unuse() walks every offset from 0 to si->max, and swapoff > restarts that walk on each retry, so the cost s