[PATCH v12 01/16] set_memory: set_direct_map_* to take address

Brendan Jackman brendan.jackman at linux.dev
Fri Jun 26 07:38:29 PDT 2026


On Tue Apr 21, 2026 at 2:43 PM UTC, Lorenzo Stoakes wrote:
> On Fri, Apr 10, 2026 at 03:17:58PM +0000, Kalyazin, Nikita wrote:
>> From: Nikita Kalyazin <nikita.kalyazin at linux.dev>
>>
>> Let's convert set_direct_map_*() to take an address instead of a page to
>> prepare for adding helpers that operate on folios; it will be more
>> efficient to convert from a folio directly to an address without going
>> through a page first.

Why is this more efficient? Isn't it a purely compile-time conversion?

Indeed in the current implementation folio_address() is
page_address(&folio->page) so it still goes through a page anyway, no?

I might be missing context here about how this will look in the
memdesc future.



More information about the linux-riscv mailing list