Re: [PATCH] mm/memcontrol: remove unused memcg parameter in calculate_high_delay()

From: SJ Park

Date: Tue Aug 25 2026 - 20:27:09 EST


On Tue, 25 Aug 2026 20:01:53 +0800 Hongfu Li <hongfu.li@xxxxxxxxx> 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().

Looks good cleanup to me.

>
> Signed-off-by: Hongfu Li <lihongfu@xxxxxxxxxx>

Reviewed-by: SJ Park <sj@xxxxxxxxxx>


Thanks,
SJ

[...]