v1
2026-07-29
swapoff扫描跳过空簇 · v1
优化swapoff中find_next_to_unuse(),跳过空cluster减少扫描开销。
原始补丁链接
子 Patch(2)
1/2
mm/swap: fix stale comment on swap_info_struct::cluster_info
[mm/swap: fix stale comment on swap_info_struct::cluster_info] From: Youngjun Park her0gyugyu@gmail.com From: Youngjun Park youngjun.park@lge.com setup_swap_clusters_info() allocates cluster_inf
2/2
mm/swap: scan by cluster in find_next_to_unuse()
[mm/swap: scan by cluster in find_next_to_unuse()] From: Youngjun Park her0gyugyu@gmail.com From: Youngjun Park youngjun.park@lge.com find_next_to_unuse() walks every offset from 0 to si->max, a