mm-memcontrol-remove-unused-memcg-parameter-in-calculate_high_delay.patch removed from -mm tree
The quilt patch titled
Subject: mm/memcontrol: remove unused memcg parameter in calculate_high_delay()
has been removed from the -mm tree. Its filename was
mm-memcontrol-remove-unused-memcg-parameter-in-calculate_high_delay.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Hongfu Li <[email protected]>
Subject: mm/memcontrol: remove unused memcg parameter in calculate_high_delay()
Date: Tue, 25 Aug 2026 20:01:53 +0800
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().
---
mm/memcontrol.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
mm/memcontrol.c renamed from mm/memcontrol.c~mm-memcontrol-remove-unused-memcg-parameter-in-calculate_high_delay +3 -4
@@ -2515,8 +2515,7 @@ static u64 swap_find_max_overage(struct* Get the number of jiffies that we should penalise a mischievous cgroup which * is exceeding its memory.high by checking both it and its ancestors. */ -static unsigned long calculate_high_delay (struct mem_cgroup *memcg, -unsigned int nr_pages, +static unsigned long calculate_high_delay (unsigned int nr_pages,u64 max_overage) {unsigned long penalty_jiffies;
@@ -2594,10 +2593,10 @@ retry_reclaim:* memory.high is breached and reclaim is unable to keep up. Throttle * allocators proactively to slow down excessive growth. */ - penalty_jiffies =calculate_high_delay (memcg, nr_pages, + penalty_jiffies =calculate_high_delay (nr_pages,mem_find_max_overage (memcg)); - penalty_jiffies +=calculate_high_delay (memcg, nr_pages, + penalty_jiffies +=calculate_high_delay (nr_pages,swap_find_max_overage (memcg));/*
_
Patches currently in -mm which might be from [email protected] are
mm-page_owner-preserve-original-free_pid-free_tgid-during-folio-migration.patch mm-memfd-fix-hugetlb-reservation-accounting-in-error-paths.patch selftests-mm-fix-ptrace-peekdata-check-in-memfd_secret-test.patch mm-hugetlb_cgroup-move-per-node-usage-on-cross-node-migration.patch mm-hugetlb_cgroup-move-per-node-usage-on-cgroup-reparenting.patch mm-hugetlb-account-migration-target-folio-in-per-node-nr_hugetlb-vmstat.patch mm-memcg-migrate-per-node-hugetlb-lruvec-stat-together-with-hugetlb-folio.patch