Re: [PATCH v3] mm/page_io: use sio->len for PSWPIN accounting in sio_read_complete()

From: Barry Song

Date: Thu Apr 02 2026 - 01:53:12 EST


On Thu, Apr 2, 2026 at 12:11 PM Matthew Wilcox <willy@xxxxxxxxxxxxx> wrote:
>
> 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?

+1, that would be great.