Re: [PATCH 1/2] highmem: Add memcpy_to_folio()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 15, 2023 at 07:58:31AM +0200, Christoph Hellwig wrote:
> 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.

Yeah, that's what I did to zero_user_segments().  As time goes by,
I'm starting to care about performance of CONFIG_HIGHMEM systems less
and less.





[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux