Skip to contentSkip to conversation

memcg-removed-duplication-detection-for-mem_cgroup_uncharge_swap.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Aug 24, 2023

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: memcg: remove duplication detection for mem_cgroup_uncharge_swap
has been removed from the -mm tree. Its filename was
memcg-removed-duplication-detection-for-mem_cgroup_uncharge_swap.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: Lu Jialin <[email protected]>
Subject: memcg: remove duplication detection for mem_cgroup_uncharge_swap
Date: Sat, 19 Aug 2023 08:13:02 +0000

__mem_cgroup_uncharge_swap is only called in mem_cgroup_uncharge_swap, if mem cgroup is disabled, __mem_cgroup_uncharge_swap cannot be called. Therefore, there is no need to judge whether mem_cgroup is disabled or not.

---

 mm/memcontrol.c |    3 ---
 1 file changed, 3 deletions(-)
mm/memcontrol.c renamed from mm/memcontrol.c~memcg-removed-duplication-detection-for-mem_cgroup_uncharge_swap +0 -3
@@ -7535,9 +7535,6 @@ void __mem_cgroup_uncharge_swap(swp_entr
 	struct mem_cgroup *memcg;
 	unsigned short id;
 
-	if (mem_cgroup_disabled())
-		return;
-
 	id = swap_cgroup_record(entry, 0, nr_pages);
 	rcu_read_lock();
 	memcg = mem_cgroup_from_id(id);

_

Patches currently in -mm which might be from [email protected] are