Re: [PATCH 3/6] mm/page_alloc: Export free_frozen_pages() instead of free_unref_page()

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

 



On Tue, May 31, 2022 at 07:09:09PM +0200, David Hildenbrand wrote:
> On 31.05.22 17:06, Matthew Wilcox (Oracle) wrote:
> > +++ b/mm/swap.c
> > @@ -103,7 +103,7 @@ static void __put_single_page(struct page *page)
> >  {
> >  	__page_cache_release(page);
> >  	mem_cgroup_uncharge(page_folio(page));
> > -	free_unref_page(page, 0);
> > +	free_frozen_pages(page, 0);
> >  }
> >  
> >  static void __put_compound_page(struct page *page)
> 
> 
> IIUC, the net change is 0, because we'll always take the
> pcp_allowed_order() path due to order==0, correct?

Correct




[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