Re: [PATCH v3] mm: page_alloc: make defrag_mode retries follow the promoted order
From: Vlastimil Babka (SUSE)
Date: Thu Oct 15 2026 - 03:21:30 EST
On 10/14/26 22:29, Johannes Weiner wrote:
> 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?
No strong preference.
> 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.
I thought it was there for a long time but it was only added in 2025 :) At
least the enterprise world is slow to adopt things, AFAICS.