Re: [PATCH mm-unstable v4 2/5] mm: introduce is_pmd_order helper
From: Andrew Morton
Date: Wed Mar 25 2026 - 12:19:17 EST
On Wed, 25 Mar 2026 14:49:30 +0000 "Lorenzo Stoakes (Oracle)" <ljs@xxxxxxxxxx> wrote:
> On Wed, Mar 25, 2026 at 07:45:16AM -0700, Andrew Morton wrote:
> > On Wed, 25 Mar 2026 12:11:43 +0000 "Lorenzo Stoakes (Oracle)" <ljs@xxxxxxxxxx> wrote:
> >
> > > On Wed, Mar 25, 2026 at 05:40:19AM -0600, Nico Pache wrote:
> > > > In order to add mTHP support to khugepaged, we will often be checking if a
> > > > given order is (or is not) a PMD order. Some places in the kernel already
> > > > use this check, so lets create a simple helper function to keep the code
> > > > clean and readable.
> > > >
> > > > Acked-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>
> > > > Reviewed-by: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>
> > > > Reviewed-by: Dev Jain <dev.jain@xxxxxxx>
> > > > Reviewed-by: Wei Yang <richard.weiyang@xxxxxxxxx>
> > > > Reviewed-by: Lance Yang <lance.yang@xxxxxxxxx>
> > > > Reviewed-by: Barry Song <baohua@xxxxxxxxxx>
> > > > Reviewed-by: Zi Yan <ziy@xxxxxxxxxx>
> > > > Reviewed-by: Pedro Falcato <pfalcato@xxxxxxx>
> > > > Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@xxxxxxxxxx>
> > > > Suggested-by: Lorenzo Stoakes <lorenzo.stoakes@xxxxxxxxxx>
> > >
> > > Nit, but could we please update both to:
> > >
> > > Lorenzo Stoakes (Oracle) <ljs@xxxxxxxxxx>
> >
> > hp2:/usr/src/25> grep lorenzo.stoakes@xxxxxxxxxx patches/*.patch|wc -l
> > 105
> >
> > Please lmk if you'd prefer that I go through these and update the email
> > address.
>
> That'd be useful thanks.
>
> It's not a huge big deal, but trying to gently nudge the transition forwards a
> bit...
Done.