Re: [PATCH] mm/memcontrol: remove unused memcg parameter in calculate_high_delay()
From: Gregory Price
Date: Tue Aug 25 2026 - 12:16:07 EST
On Tue, Aug 25, 2026 at 08:01:53PM +0800, Hongfu Li wrote:
> From: Hongfu Li <lihongfu@xxxxxxxxxx>
>
> The memcg argument of calculate_high_delay() is never referenced in
> its function body. The delay calculation only depends on nr_pages
> and max_overage, and both callers have already obtained max_overage
> from the same memcg.
>
> Drop this unused parameter and update the two call sites inside
> __mem_cgroup_handle_over_high().
>
> Signed-off-by: Hongfu Li <lihongfu@xxxxxxxxxx>
Reviewed-by: Gregory Price (Meta) <gourry@xxxxxxxxxx>