Re: [PATCH v3] mm: page_alloc: make defrag_mode retries follow the promoted order

From: Johannes Weiner

Date: Wed Oct 14 2026 - 16:30:11 EST


On Tue, Oct 13, 2026 at 06:37:20PM +0100, Kiryl Shutsemau wrote:
> @@ -4127,6 +4127,12 @@ __alloc_pages_may_oom(gfp_t gfp_mask, unsigned int order,
> return page;
> }
>
> +static inline bool order_nofrag_promoted(unsigned int order,
> + const struct alloc_context *ac)
> +{
> + return ac->reclaim_compact_order != order;
> +}

order_defrag_promoted?

Otherwise looks good to me!
Reviewed-by: Johannes Weiner <hannes@xxxxxxxxxxx>

And agree 7.4-rc1 with CC stable is fine. Sadly, not sure if anyone
but Meta is using the feature right now.