Messages in this thread | | | Date | Tue, 7 Mar 2023 12:01:47 +1300 | Subject | Re: [PATCH v3 13/34] m68k: Implement the new page table range API | From | Michael Schmitz <> |
| |
Hi Geert,
On 6/03/23 20:21, Geert Uytterhoeven wrote: >> Are we certain that contiguous vaddr always maps to contiguous paddr? > For a general __flush_pages_to_ram() function, that would not be > guaranteed. But as this is meant for folios, it must be true: > https://elixir.bootlin.com/linux/latest/source/include/linux/mm_types.h#L320
Thanks for explaining - that just leaves the problem of cowboys like myself abusing __flush_pages_to_ram(addr, nr) with nr > 1 for something that isn't a folio. Maybe a comment 'nr > 1 only valid on folios' would help ...
Cheers,
Michael
> > Gr{oetje,eeting}s, > > Geert >
| |