v3
2026-08-14
修复 swappiness=max 和清理主动回收 · v3
修复swappiness=max时匿名回收退化为文件回收,并传播proactive reclaim的真实错误码。
原始补丁链接
子 Patch(4)
1/4
mm/vmscan: fix anon-only reclaim evicting file pages when swappiness=max
修复get_scan_count()中swappiness=max时因检查顺序导致文件页被错误回收的问题,确保仅回收匿名页。
2/4
mm: vmscan: propagate real error code from per-node proactive reclaim
From: Ridong Chen chenridong@xiaomi.com It has been observed that per-node proactive reclaim always returns -EAGAIN when any error occurs. As discussed in the mailing list [1], the interface should
3/4
mm: vmscan: drop unused gfp_mask parameter from __node_reclaim()
From: Ridong Chen chenridong@xiaomi.com Commit 57972c78e678 (“mm/vmscan: make __node_reclaim() more generic”) moved the scan_control construction out to the callers and passed the struct in by poin
4/4
mm/mglru: fix anon-only reclaim evicting file pages when swappiness=max
From: Ridong Chen chenridong@xiaomi.com The previous patch fixed this issue for the traditional LRU. The same problem exists in MGLRU [1]: when swappiness=max (SWAPPINESS_ANON_ONLY) is set, reclaim