Re: [PATCH v2 1/5] mm: Introduce zone_appears_fragmented()

Matthew Brost
2026-04-30T02:34:36Z

On Tue, Apr 28, 2026 at 12:05:13PM +0200, Andi Shyti wrote:
> > > + if (zone_page_state(zone, NR_FREE_PAGES) > high_wmark_pages(zone) * 2)
> > > + return true;
> > > +
> > > + return false;
>
> P.S.: If you want, this can also be written:
>
> return (zone_page_state(zone, NR_FREE_PAGES) > high_wmark_pages(zone) * 2);
>

Indeed.

Matt

> > > +}