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

Kirill Tkhai ktkhai at virtuozzo.com
Wed Feb 17 11:25:28 MSK 2021


On 16.02.2021 13:39, Alexander Mikhalitsyn wrote:
> Fixes: 8d980b969c46d ("per-memcg negative dentries accounting")
> 
> https://jira.sw.ru/browse/PSBM-125735
> 
> Signed-off-by: Alexander Mikhalitsyn <alexander.mikhalitsyn at virtuozzo.com>

Reviewed-by: Kirill Tkhai <ktkhai 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],
> 



More information about the Devel mailing list