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

From: David CARLIER

Date: Thu Apr 02 2026 - 02:03:19 EST


Sure, will send as a follow-up patch.

Cheers.

On Thu, 2 Apr 2026 at 05:11, 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?