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

From: David Hildenbrand (Red Hat)

Date: Thu Jan 15 2026 - 12:45:46 EST


On 1/15/26 18:26, Kiryl Shutsemau wrote:
On Thu, Jan 15, 2026 at 05:48:20PM +0100, David Hildenbrand (Red Hat) wrote:
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.

I moved it next to MAX_PAGE_ORDER definition which seemed to be logical.

MAX_PAGE_ORDER is a buddy concept. MAX_FOLIO_ORDER is not a buddy concept.

--
Cheers

David