linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: David CARLIER <devnexen@gmail.com>
To: "David Hildenbrand (Arm)" <david@kernel.org>
Cc: Kairui Song <kasong@tencent.com>, Chris Li <chrisl@kernel.org>,
	 Andrew Morton <akpm@linux-foundation.org>,
	Kemeng Shi <shikemeng@huaweicloud.com>,
	 Nhat Pham <nphamcs@gmail.com>, Baoquan He <bhe@redhat.com>,
	 Youngjun Park <youngjun.park@lge.com>,
	NeilBrown <neil@brown.name>,
	linux-kernel@vger.kernel.org,  linux-mm@kvack.org,
	"Matthew Wilcox (Oracle)" <willy@infradead.org>
Subject: Re: [PATCH v4 2/2] mm/page_io: rename swap_iocb->pages to swap_iocb->bvecs
Date: Thu, 2 Apr 2026 08:19:24 +0100	[thread overview]
Message-ID: <CA+XhMqwZwjgeochTpBmC=PQfDXHxe5wqpQg2=_RJzPPoKG1+9A@mail.gmail.com> (raw)
In-Reply-To: <8b6d552e-cdf2-4472-ad26-62cbb575b0fc@kernel.org>

I went for it initially but I thought I saw bvecs in a message :) but
I do not mind it is just naming after all, let s go for it.

On Thu, 2 Apr 2026 at 08:15, David Hildenbrand (Arm) <david@kernel.org> wrote:
>
> On 4/2/26 08:14, David Carlier wrote:
> > swap_iocb->pages tracks the number of bvec entries (folios), not base
> > pages. Rename it to bvecs to accurately reflect its purpose.
> >
> > Suggested-by: Matthew Wilcox (Oracle) <willy@infradead.org>
> > Signed-off-by: David Carlier <devnexen@gmail.com>
> > ---
> >  mm/page_io.c | 30 +++++++++++++++---------------
> >  1 file changed, 15 insertions(+), 15 deletions(-)
> >
> > diff --git a/mm/page_io.c b/mm/page_io.c
> > index 1389cd57ca88..e524cb821d04 100644
> > --- a/mm/page_io.c
> > +++ b/mm/page_io.c
> > @@ -327,7 +327,7 @@ static void bio_associate_blkg_from_page(struct bio *bio, struct folio *folio)
> >  struct swap_iocb {
> >       struct kiocb            iocb;
> >       struct bio_vec          bvec[SWAP_CLUSTER_MAX];
> > -     int                     pages;
> > +     int                     bvecs;
>
> bvec (an array of bvecs) vs bvecs. Hm.
>
> Wouldn't it be cleaner to have
>
>         struct bio_vec          bvecs[SWAP_CLUSTER_MAX];
>         int                     nr_bvecs;
>
> ?
>
> --
> Cheers,
>
> David


  reply	other threads:[~2026-04-02  7:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-02  6:14 [PATCH v4 1/2] mm/page_io: use sio->len for PSWPIN accounting in sio_read_complete() David Carlier
2026-04-02  6:14 ` [PATCH v4 2/2] mm/page_io: rename swap_iocb->pages to swap_iocb->bvecs David Carlier
2026-04-02  7:15   ` David Hildenbrand (Arm)
2026-04-02  7:19     ` David CARLIER [this message]
2026-04-02  7:12 ` [PATCH v4 1/2] mm/page_io: use sio->len for PSWPIN accounting in sio_read_complete() David Hildenbrand (Arm)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+XhMqwZwjgeochTpBmC=PQfDXHxe5wqpQg2=_RJzPPoKG1+9A@mail.gmail.com' \
    --to=devnexen@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=bhe@redhat.com \
    --cc=chrisl@kernel.org \
    --cc=david@kernel.org \
    --cc=kasong@tencent.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=neil@brown.name \
    --cc=nphamcs@gmail.com \
    --cc=shikemeng@huaweicloud.com \
    --cc=willy@infradead.org \
    --cc=youngjun.park@lge.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox