Re: [PATCH 1/2] mm: Add pvmw_set_page()

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

 



On Tue, Feb 08, 2022 at 04:04:32PM +0800, Muchun Song wrote:
> How about the name pvmw_set_pfn_from_page()?
> When I looked at your next patch, I'm feeling this helper
> is used to set up the pfn from a page instead of setting up
> the page.

But it doesn't just set up the pfn, it also sets up the range and
the pgoff.

I wonder if we wouldn't be better off with this pattern:

	DEFINE_PAGE_VMA_WALK(pvmw, page, vma, address, flags);

... which wouldn't get used by KSM, but could be used by
most other callers.





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux