[Devel] [PATCH RHEL7 COMMIT] mm: memory.stat format fix "negative dentries"

Vasily Averin vvs at virtuozzo.com
Wed Feb 17 15:36:14 MSK 2021


The commit is pushed to "branch-rh7-3.10.0-1160.11.1.vz7.172.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-1160.11.1.vz7.172.13
------>
commit c59eb09a181a666cdf9d6e71ead567ba1f4eda20
Author: Alexander Mikhalitsyn <alexander.mikhalitsyn at virtuozzo.com>
Date:   Wed Feb 17 15:36:14 2021 +0300

    mm: memory.stat format fix "negative dentries"
    
    Fixes: 8d980b969c46d ("per-memcg negative dentries accounting")
    
    https://jira.sw.ru/browse/PSBM-125735
    
    Signed-off-by: Alexander Mikhalitsyn <alexander.mikhalitsyn at virtuozzo.com>
---
 mm/memcontrol.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 1eae25d..e0a4309 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -5773,7 +5773,7 @@ static int memcg_stat_show(struct cgroup *cont, struct cftype *cft,
 		seq_printf(m, "%s %lu\n", mem_cgroup_events_names[i],
 			   mem_cgroup_read_events(memcg, i));
 	seq_printf(m, "oom %lu\n", atomic_long_read(&memcg->oom));
-	seq_printf(m, "negative dentries %lu\n", mem_cgroup_read_nd(memcg));
+	seq_printf(m, "negative_dentries %lu\n", mem_cgroup_read_nd(memcg));
 
 	for (i = 0; i < NR_LRU_LISTS; i++)
 		seq_printf(m, "%s %lu\n", mem_cgroup_lru_names[i],


More information about the Devel mailing list