Re: [PATCH mm-new v6 2/5] mm: khugepaged: refine scan progress number

From: David Hildenbrand (Arm)

Date: Fri Feb 06 2026 - 06:13:49 EST


On 2/6/26 11:00, Dev Jain wrote:

On 06/02/26 2:32 pm, David Hildenbrand (Arm) wrote:
On 2/5/26 15:25, Dev Jain wrote:



I mean .... we don't, but the alternate is a one liner using max().

I'm fine with the max(), but it still seems like adding complexity to
optimize something that is nowhere prove to really be a problem.

Agreed. Vernon, let us do the increment in the loop then.

I'm fine with the min(), so if you both think it's better, let's do that!

It makes it slightly harder to understand what's happening, but fortunately, if we mess up slightly nobody will really notice :)

--
Cheers,

David