Re: [PATCH 02/17] mm: Add folio_pincount_available()

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

 



On Tue, Jan 04, 2022 at 01:40:36PM -0800, John Hubbard wrote:
> > -	page = compound_head(page);
> > -	return PageCompound(page) && compound_order(page) > 1;
> > +	return folio_order(folio) > 1;
> 
> I see, no need to look at the compound page head, because folio_order() returns
> zero for tail pages, and neatly avoids all of that.

Did you mean base pages instead of tail pages?  A folio can never be a
tail page.





[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