Re: [PATCH v2 1/5] mm: Introduce zone_appears_fragmented()
From: Matthew Brost
Date: Wed Apr 29 2026 - 22:34:38 EST
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
> > > +}