mm-memcontrol-eliminate-redundant-check-in-__mem_cgroup_insert_exceeded.patch removed from -mm tree
The patch titled
Subject: mm: memcontrol: eliminate redundant check in __mem_cgroup_insert_exceeded()
has been removed from the -mm tree. Its filename was
mm-memcontrol-eliminate-redundant-check-in-__mem_cgroup_insert_exceeded.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Miaohe Lin <[email protected]>
Subject: mm: memcontrol: eliminate redundant check in __mem_cgroup_insert_exceeded()
The mz->usage_in_excess >= mz_node->usage_in_excess check is exactly the else case of mz->usage_in_excess < mz_node->usage_in_excess. So we could replace else if (mz->usage_in_excess >= mz_node->usage_in_excess) with else equally. Also drop the comment which doesn't really explain much.
---
mm/memcontrol.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-)
mm/memcontrol.c renamed from mm/memcontrol.c~mm-memcontrol-eliminate-redundant-check-in-__mem_cgroup_insert_exceeded +2 -7
@@ -623,14 +623,9 @@ static void __mem_cgroup_insert_exceededif (mz->usage_in_excess < mz_node->usage_in_excess) { p = &(*p)->rb_left; rightmost = false; - } - -/* -* We can't avoid mem cgroups that are over their soft -* limit by the same amount -*/ -else if (mz->usage_in_excess >= mz_node->usage_in_excess) + }else { p = &(*p)->rb_right; + } }if (rightmost)
_
Patches currently in -mm which might be from [email protected] are