negative-order folios
negative-order folios
Posted May 11, 2026 21:10 UTC (Mon) by willy (subscriber, #9762)In reply to: negative-order folios by david.hildenbrand
Parent article: Providing 64KB base pages with 4KB kernels, two different ways
https://lore.kernel.org/linux-mm/afIYFtL6KrBs38rT@casper....
but I wouldn't propose a negative order folio for a couple of reasons. I understand why our overworked scribe recorded it that way though; I'm sure my spoken words weren't perfectly clear.
First, folios are always >= PAGE_SIZE. As long as we want to be able to mmap things, they have to be PAGE_SIZE.
Second, allowing negative orders to the page allocator could never be more than a hack. That's just an unreasonable mental workload to any user. Instead, introduce a new interface that allows allocation of memory in units of 512 (rather than units of PAGE_SIZE) and reimplement alloc_page() as a wrapper around it.
