Re: [PATCH v2 2/2] mm/debug: Fix parameter passed to page_mapcount_is_type()

From: Andrew Morton
Date: Fri Mar 21 2025 - 19:53:19 EST


On Fri, 21 Mar 2025 16:38:29 +0100 David Hildenbrand <david@xxxxxxxxxx> wrote:

> >> - mapcount = page_mapcount_is_type(mapcount) ? 0 : mapcount + 1;
> >> + mapcount = page_mapcount_is_type(mapcount) ? 0 : mapcount;
> >
> > At this point it would be perhaps more obvious:
> >
> > if (page_mapcount_is_type(mapcount))
> > mapcount = 0;
>
> Agreed, maybe Andrew can fix that up.

Sure. I'll be adding this series to the 6.15-rc1 pile.