Re: [PATCH 2/3] mm: add bytes_to_page_end() helper
From: Lorenzo Stoakes
Date: Mon May 18 2026 - 09:28:00 EST
On Mon, May 18, 2026 at 03:06:16PM +0200, David Hildenbrand (Arm) wrote:
> On 5/18/26 12:24, Lorenzo Stoakes wrote:
> > On Mon, May 18, 2026 at 10:09:33AM +0100, David Laight wrote:
> >> On Sun, 17 May 2026 11:28:05 -0400
> >> Yury Norov <ynorov@xxxxxxxxxx> wrote:
> >>
> >>>
> >>> I've got a series for this
> >>>
> >>> https://lore.kernel.org/all/20260303182845.250bb2de@xxxxxxxxxx/
> >>>
> >>> The feedback is surprisingly negative. Please add people from that
> >>> thread. Maybe you'll be more successful convincing them.
> >>
> >> I don't think you need a another new header.
> >> There is already vdso/page.h which is where PAGE_MASK comes from.
> >
> > Yeah please don't, that's already a weird situation I don't really love the idea
> > of extending that.
> >
> > mm_types.h seems the more appropriate place.
>
> I think I'd prefer vdso/page.h for something as basic as that.
>
> But definitely no new header unless really unavoidable :)
I just find vdso/page.h an extremely weird beast. what does the VDSO have to do
with it and why are we smuggling some basic definitions there...
I'm still waiting for an explanation as to why this series is necessary, I'm
guessing build times (though I wonder what the actual delta is).
But yeah, I mean if you're fine with something else going there then fine, that
or mm_types.h or some existing header, the new header is the nope thing here.
>
> --
> Cheers,
>
> David
Thanks, Lorenzo