mm-memcontrol-simplify-value-comparison-between-count-and-limit.patch removed from -mm tree
The patch titled
Subject: mm: memcontrol: simplify value comparison between count and limit
has been removed from the -mm tree. Its filename was
mm-memcontrol-simplify-value-comparison-between-count-and-limit.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Kaixu Xia <[email protected]>
Subject: mm: memcontrol: simplify value comparison between count and limit
When the variables count and limit have the same value(count == limit), the result of min(margin, limit - count) statement should be 0 and the variable margin is set to 0. So in this case, the min() statement is not necessary and we can directly set the variable margin to 0.
---
mm/memcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/memcontrol.c renamed from mm/memcontrol.c~mm-memcontrol-simplify-value-comparison-between-count-and-limit +1 -1
@@ -1314,7 +1314,7 @@ static unsigned long mem_cgroup_margin(sif (do_memsw_account ()) { count =page_counter_read (&memcg->memsw); limit =READ_ONCE (memcg->memsw.max); -if (count <= limit) +if (count < limit) margin =min (margin, limit - count);else margin =0 ;
_
Patches currently in -mm which might be from [email protected] are