Re: [PATCHv3 02/15] mm: Move MAX_FOLIO_ORDER definition to mmzone.h

From: David Hildenbrand (Red Hat)

Date: Thu Jan 15 2026 - 11:48:27 EST


On 1/15/26 17:35, David Hildenbrand (Red Hat) wrote:
On 1/15/26 15:45, Kiryl Shutsemau wrote:
Move MAX_FOLIO_ORDER definition from mm.h to mmzone.h.

Why should that belong to mmzone.h ? Semantically doesn't make sense, no?

To clarify, I would have moved it to something more folio-type specific, not something buddy/zone specific.

I guess page-flags.h + mm.h are our dumping ground for folio handling. I would have moved it to the former.

Likely we want some folio.h in some distant future.

Acked-by: David Hildenbrand (Red Hat) <david@xxxxxxxxxx>

--
Cheers

David