On Mon, Sep 15, 2025 at 05:12:27PM +0300, Mike Rapoport wrote: > > I don't suppose I'd insist on it, but something to consider since you > > are likely going to do another revision anyway. > > I think vmalloc is as basic as folio.
vmalloc() ultimately calls vm_area_alloc_pages() -> alloc_pages_bulk_node_noprof() KHO should have functions that clearly pair with the low level allocators struct page related allocators, alloc_pages(order), folio_alloc(), etc etc ie if you call this allocator X then you call this kho preserve, this kho restore, and this free function Y. Under the covers it all uses the generic folio based code we already have, but we should have appropriate wrappers around that code that make clear these patterns. Jason
