[Devel,rh7] mm/memcg: drop extra mem_cgroup_inc_failcnt()

Submitted by Andrey Ryabinin on Aug. 30, 2017, 11:20 a.m.

Details

Message ID 20170830112018.17955-1-aryabinin@virtuozzo.com
State New
Series "mm/memcg: drop extra mem_cgroup_inc_failcnt()"
Headers show

Commit Message

Andrey Ryabinin Aug. 30, 2017, 11:20 a.m.
We need only one. Shoud be merged into
	c6f8224e23d8cf ("ms/mm: memcontrol: rewrite charge API")

https://jira.sw.ru/browse/PSBM-70741
Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
---
 mm/memcontrol.c | 1 -
 1 file changed, 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 97824e281d7a..940cca31ed5d 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -2880,7 +2880,6 @@  retry:
 		goto bypass;
 
 	mem_cgroup_oom(mem_over_limit, gfp_mask, get_order(batch * PAGE_SIZE));
-	mem_cgroup_inc_failcnt(mem_over_limit, gfp_mask, nr_pages);
 
 nomem:
 	mem_cgroup_inc_failcnt(mem_over_limit, gfp_mask, nr_pages);