On Wed, Jun 14, 2023 at 02:48:52PM +0100, Matthew Wilcox (Oracle) wrote: > This is the folio equivalent of memcpy_to_page(), but it handles large > highmem folios. It may be a little too big to inline on systems that > have CONFIG_HIGHMEM enabled but on systems we actually care about almost > all the code will be eliminated. I suspect the right thing is to have the trivial version without kmapping for !HIGHMEM inline, and a separate version with the kmap loop out of line for HIGHMEM builds. Same for the next patch.