Re: [PATCH] mm/memcontrol: remove unused memcg parameter in calculate_high_delay()
From: Shakeel Butt
Date: Wed Aug 26 2026 - 14:36:09 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>
Acked-by: Shakeel Butt <shakeel.butt@xxxxxxxxx>