Re: [PATCH 1/2] mm/mempolicy: Simplify weighted interleave bulk alloc calculations

From: Oscar Salvador
Date: Fri Jun 27 2025 - 03:46:03 EST


On Thu, Jun 26, 2025 at 01:09:33PM -0700, Joshua Hahn wrote:
> Simplify the math used to figure out how many pages should be allocated
> per node. Instead of making conditional additions and deletions, we can just
> make them unconditional by using min(). No functional changes intended.
>
> Signed-off-by: Joshua Hahn <joshua.hahnjy@xxxxxxxxx>

Reviewed-by: Oscar Salvador <osalvador@xxxxxxx>


--
Oscar Salvador
SUSE Labs