Re: [PATCH v3] mm/page_io: use sio->len for PSWPIN accounting in sio_read_complete()
From: Matthew Wilcox
Date: Thu Apr 02 2026 - 00:11:56 EST
On Wed, Apr 01, 2026 at 08:47:53AM +0100, David Carlier wrote:
> sio_read_complete() uses sio->pages to account global PSWPIN vm events,
> but sio->pages tracks the number of bvec entries (folios), not base
> pages.
Since you're messing with this file anyway, do you want to submit a
third patch to rename swap_iocb->pages to ->bvecs?