[PATCH 0/4] mm: misc cleanups from __GFP_UNMAPPED series

Brendan Jackman posted 4 patches 1 month ago
include/linux/mmzone.h          |  9 +++--
include/linux/pageblock-flags.h |  6 +--
kernel/power/snapshot.c         |  8 ++--
mm/compaction.c                 |  3 +-
mm/internal.h                   | 14 +++++--
mm/mm_init.c                    | 11 ++++--
mm/page_alloc.c                 | 88 +++++++++++++++++++++--------------------
7 files changed, 79 insertions(+), 60 deletions(-)
[PATCH 0/4] mm: misc cleanups from __GFP_UNMAPPED series
Posted by Brendan Jackman 1 month ago
In v2 of the __GFP_UNMAPPED series [0], we realised that some of the patches
could potentially be merged as independent cleanups.

These are all independent of one another, if you think some are useful
cleanups and others are pointless churn, it should be fine to just pick
whatever subset you prefer.

No functional change intended.

[0]: https://lore.kernel.org/all/20260320-page_alloc-unmapped-v2-0-28bf1bd54f41@google.com/

Signed-off-by: Brendan Jackman <jackmanb@google.com>
---
Brendan Jackman (4):
      mm: introduce for_each_free_list()
      mm/page_alloc: don't overload migratetype in find_suitable_fallback()
      mm: rejig pageblock mask definitions
      mm/page_alloc: remove ifdefs from pindex helpers

 include/linux/mmzone.h          |  9 +++--
 include/linux/pageblock-flags.h |  6 +--
 kernel/power/snapshot.c         |  8 ++--
 mm/compaction.c                 |  3 +-
 mm/internal.h                   | 14 +++++--
 mm/mm_init.c                    | 11 ++++--
 mm/page_alloc.c                 | 88 +++++++++++++++++++++--------------------
 7 files changed, 79 insertions(+), 60 deletions(-)
---
base-commit: 30424114b17dd65c098749cedcaef301c1dd2f86
change-id: 20260512-page_alloc-unmapped-prep-c3ae0381d58b

Best regards,
-- 
Brendan Jackman <jackmanb@google.com>
Re: [PATCH 0/4] mm: misc cleanups from __GFP_UNMAPPED series
Posted by Andrew Morton 3 weeks, 3 days ago
On Wed, 13 May 2026 12:35:12 +0000 Brendan Jackman <jackmanb@google.com> wrote:

> In v2 of the __GFP_UNMAPPED series [0], we realised that some of the patches
> could potentially be merged as independent cleanups.
> 
> These are all independent of one another, if you think some are useful
> cleanups and others are pointless churn, it should be fine to just pick
> whatever subset you prefer.
> 
> No functional change intended.

Thanks, Brendan.  I added this to mm.git's mm-new branch for testing,
along with a note that [4/4] may be getting an update arising from
Vlastimil's feedback.
Re: [PATCH 0/4] mm: misc cleanups from __GFP_UNMAPPED series
Posted by Brendan Jackman 3 weeks, 3 days ago
On Mon May 18, 2026 at 6:15 PM UTC, Andrew Morton wrote:
> On Wed, 13 May 2026 12:35:12 +0000 Brendan Jackman <jackmanb@google.com> wrote:
>
>> In v2 of the __GFP_UNMAPPED series [0], we realised that some of the patches
>> could potentially be merged as independent cleanups.
>> 
>> These are all independent of one another, if you think some are useful
>> cleanups and others are pointless churn, it should be fine to just pick
>> whatever subset you prefer.
>> 
>> No functional change intended.
>
> Thanks, Brendan.  I added this to mm.git's mm-new branch for testing,
> along with a note that [4/4] may be getting an update arising from
> Vlastimil's feedback.

Cool thanks, (also I got the "added to mm-new branch notification" and
realised why I missed it last time, broken mail filter).

The 4/4 update is already up, in reply to the thread.
Re: [PATCH 0/4] mm: misc cleanups from __GFP_UNMAPPED series
Posted by Andrew Morton 3 weeks, 3 days ago
On Mon, 18 May 2026 20:20:50 +0000 Brendan Jackman <jackmanb@google.com> wrote:

> On Mon May 18, 2026 at 6:15 PM UTC, Andrew Morton wrote:
> > On Wed, 13 May 2026 12:35:12 +0000 Brendan Jackman <jackmanb@google.com> wrote:
> >
> >> In v2 of the __GFP_UNMAPPED series [0], we realised that some of the patches
> >> could potentially be merged as independent cleanups.
> >> 
> >> These are all independent of one another, if you think some are useful
> >> cleanups and others are pointless churn, it should be fine to just pick
> >> whatever subset you prefer.
> >> 
> >> No functional change intended.
> >
> > Thanks, Brendan.  I added this to mm.git's mm-new branch for testing,
> > along with a note that [4/4] may be getting an update arising from
> > Vlastimil's feedback.
> 
> Cool thanks, (also I got the "added to mm-new branch notification" and
> realised why I missed it last time, broken mail filter).
> 
> The 4/4 update is already up, in reply to the thread.

Is that "mm/page_alloc: tidy up pindex helpers"?

For some reason I didn't receive that email, directly or via any
mailing list.  I do have the similar "mm/page_alloc: remove ifdefs from
pindex helpers" from May 13.

Oh well, please check tomorrow's mm.git and send along whatever is
needed?
Re: [PATCH 0/4] mm: misc cleanups from __GFP_UNMAPPED series
Posted by Brendan Jackman 3 weeks, 3 days ago
On Mon, 18 May 2026 at 13:48, Andrew Morton <akpm@linux-foundation.org> wrote:
>
> On Mon, 18 May 2026 20:20:50 +0000 Brendan Jackman <jackmanb@google.com> wrote:
>
> > On Mon May 18, 2026 at 6:15 PM UTC, Andrew Morton wrote:
> > > On Wed, 13 May 2026 12:35:12 +0000 Brendan Jackman <jackmanb@google.com> wrote:
> > >
> > >> In v2 of the __GFP_UNMAPPED series [0], we realised that some of the patches
> > >> could potentially be merged as independent cleanups.
> > >>
> > >> These are all independent of one another, if you think some are useful
> > >> cleanups and others are pointless churn, it should be fine to just pick
> > >> whatever subset you prefer.
> > >>
> > >> No functional change intended.
> > >
> > > Thanks, Brendan.  I added this to mm.git's mm-new branch for testing,
> > > along with a note that [4/4] may be getting an update arising from
> > > Vlastimil's feedback.
> >
> > Cool thanks, (also I got the "added to mm-new branch notification" and
> > realised why I missed it last time, broken mail filter).
> >
> > The 4/4 update is already up, in reply to the thread.
>
> Is that "mm/page_alloc: tidy up pindex helpers"?
>
> For some reason I didn't receive that email, directly or via any
> mailing list.  I do have the similar "mm/page_alloc: remove ifdefs from
> pindex helpers" from May 13.

Ooh, that's unfortunate... I used git-send-email directl to send that,
which is not how I work most of the time, so I suspect something went
wrong with that particular setup. Will keep an eye on that.

> Oh well, please check tomorrow's mm.git and send along whatever is
> needed?

Ack, thanks again.
Re: [PATCH 0/4] mm: misc cleanups from __GFP_UNMAPPED series
Posted by Vlastimil Babka (SUSE) 3 weeks ago
On 5/18/26 22:58, Brendan Jackman wrote:
> On Mon, 18 May 2026 at 13:48, Andrew Morton <akpm@linux-foundation.org> wrote:
>>
>> On Mon, 18 May 2026 20:20:50 +0000 Brendan Jackman <jackmanb@google.com> wrote:
>>
>> > On Mon May 18, 2026 at 6:15 PM UTC, Andrew Morton wrote:
>> > > On Wed, 13 May 2026 12:35:12 +0000 Brendan Jackman <jackmanb@google.com> wrote:
>> > >
>> > >> In v2 of the __GFP_UNMAPPED series [0], we realised that some of the patches
>> > >> could potentially be merged as independent cleanups.
>> > >>
>> > >> These are all independent of one another, if you think some are useful
>> > >> cleanups and others are pointless churn, it should be fine to just pick
>> > >> whatever subset you prefer.
>> > >>
>> > >> No functional change intended.
>> > >
>> > > Thanks, Brendan.  I added this to mm.git's mm-new branch for testing,
>> > > along with a note that [4/4] may be getting an update arising from
>> > > Vlastimil's feedback.
>> >
>> > Cool thanks, (also I got the "added to mm-new branch notification" and
>> > realised why I missed it last time, broken mail filter).
>> >
>> > The 4/4 update is already up, in reply to the thread.
>>
>> Is that "mm/page_alloc: tidy up pindex helpers"?
>>
>> For some reason I didn't receive that email, directly or via any
>> mailing list.  I do have the similar "mm/page_alloc: remove ifdefs from
>> pindex helpers" from May 13.

Found it, seems to be threaded well with In-reply-to: too, maybe it's the
different subject?

https://lore.kernel.org/all/20260517230556.590677-1-jackmanb@google.com/

Should be fine to replace the current "mm/page_alloc: remove ifdefs from
pindex helpers" in mm.git with that.

> Ooh, that's unfortunate... I used git-send-email directl to send that,
> which is not how I work most of the time, so I suspect something went
> wrong with that particular setup. Will keep an eye on that.
> 
>> Oh well, please check tomorrow's mm.git and send along whatever is
>> needed?
> 
> Ack, thanks again.
Re: [PATCH 0/4] mm: misc cleanups from __GFP_UNMAPPED series
Posted by Andrew Morton 2 weeks, 6 days ago
On Fri, 22 May 2026 09:59:49 +0200 "Vlastimil Babka (SUSE)" <vbabka@kernel.org> wrote:

> >> > Cool thanks, (also I got the "added to mm-new branch notification" and
> >> > realised why I missed it last time, broken mail filter).
> >> >
> >> > The 4/4 update is already up, in reply to the thread.
> >>
> >> Is that "mm/page_alloc: tidy up pindex helpers"?
> >>
> >> For some reason I didn't receive that email, directly or via any
> >> mailing list.  I do have the similar "mm/page_alloc: remove ifdefs from
> >> pindex helpers" from May 13.
> 
> Found it, seems to be threaded well with In-reply-to: too, maybe it's the
> different subject?
> 
> https://lore.kernel.org/all/20260517230556.590677-1-jackmanb@google.com/
> 
> Should be fine to replace the current "mm/page_alloc: remove ifdefs from
> pindex helpers" in mm.git with that.

I could attempt to do that by my confidence that I got it right would
be low.

Brendan, please send us a v2 of the series "mm: misc cleanups from
__GFP_UNMAPPED series", thanks.
Re: [PATCH 0/4] mm: misc cleanups from __GFP_UNMAPPED series
Posted by Brendan Jackman 2 weeks, 3 days ago
On Sat May 23, 2026 at 5:11 AM CEST, Andrew Morton wrote:
> On Fri, 22 May 2026 09:59:49 +0200 "Vlastimil Babka (SUSE)" <vbabka@kernel.org> wrote:
>
>> >> > Cool thanks, (also I got the "added to mm-new branch notification" and
>> >> > realised why I missed it last time, broken mail filter).
>> >> >
>> >> > The 4/4 update is already up, in reply to the thread.
>> >>
>> >> Is that "mm/page_alloc: tidy up pindex helpers"?
>> >>
>> >> For some reason I didn't receive that email, directly or via any
>> >> mailing list.  I do have the similar "mm/page_alloc: remove ifdefs from
>> >> pindex helpers" from May 13.
>> 
>> Found it, seems to be threaded well with In-reply-to: too, maybe it's the
>> different subject?
>> 
>> https://lore.kernel.org/all/20260517230556.590677-1-jackmanb@google.com/
>> 
>> Should be fine to replace the current "mm/page_alloc: remove ifdefs from
>> pindex helpers" in mm.git with that.
>
> I could attempt to do that by my confidence that I got it right would
> be low.
>
> Brendan, please send us a v2 of the series "mm: misc cleanups from
> __GFP_UNMAPPED series", thanks.

Sorry for the delay, was travelling - it looks like you have already
applied the current patches, I will send a separate patch to remove
the VM_BUG_ONs.