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

Alexander Mikhalitsyn alexander.mikhalitsyn at virtuozzo.com
Tue Feb 16 13:39:31 MSK 2021


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 1eae25d44280..e0a430908138 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],
-- 
2.28.0



More information about the Devel mailing list