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.