v3
2026-08-26
修复 zswap 写回路径的 refault 误计 · v3
将 LRU 插入移出 swap cache 分配器,refault 改在 swap-in 时进行,zswap 写回时保留 workingset shadow。
原始补丁链接
子 Patch(3)
1/3
mm/swap: move LRU insertion out of the swap cache allocator
Hi, On Wed, Aug 26, 2026 at 3:22 PM Usama Arif usama.arif@linux.dev wrote: > > > > On Tue, 25 Aug 2026 19:24:51 +0200 Alexandre Ghiti alex@ghiti.fr wrote: > > > This is a preparatory patch. > > >
2/3
mm/swap: refault on swap-in, not in the swap cache allocator
Hi Usama, On Wed, Aug 26, 2026 at 3:31 PM Usama Arif usama.arif@linux.dev wrote: > > > > On Tue, 25 Aug 2026 19:24:52 +0200 Alexandre Ghiti alex@ghiti.fr wrote: > > > The swap cache allocator eva
3/3
mm/zswap: preserve the workingset shadow across writeback
zswap写回时把workingset shadow暂存到zswap tree,避免缓冲folio覆盖slot shadow;swap-in用shadow做refault,reclaim时恢复shadow,保证anon refault/eviction计数正确。