[Devel] [PATCH RHEL7 COMMIT] mm/memcg: drop extra mem_cgroup_inc_failcnt()

Konstantin Khorenko khorenko at virtuozzo.com
Wed Aug 30 14:37:04 MSK 2017


The commit is pushed to "branch-rh7-3.10.0-693.1.1.vz7.37.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-693.1.1.el7
------>
commit 08eefdc668f199088d9185dd9e3973177da94e18
Author: Andrey Ryabinin <aryabinin at virtuozzo.com>
Date:   Wed Aug 30 14:37:04 2017 +0300

    mm/memcg: drop extra mem_cgroup_inc_failcnt()
    
    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 at virtuozzo.com>
---
 mm/memcontrol.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 97824e2..940cca3 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -2880,7 +2880,6 @@ static int try_charge(struct mem_cgroup *memcg, gfp_t gfp_mask, bool kmem_charge
 		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);


More information about the Devel mailing list