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

Konstantin Khorenko khorenko at virtuozzo.com
Wed Jun 23 18:48:18 MSK 2021


merged into previous patch

--
Best regards,

Konstantin Khorenko,
Virtuozzo Linux Kernel Team

On 06/23/2021 02:07 PM, Valeriy Vdovin wrote:
> From: Alexander Mikhalitsyn <alexander.mikhalitsyn at virtuozzo.com>
>
> Fixes: 8d980b969c46d ("per-memcg negative dentries accounting")
>
> https://jira.sw.ru/browse/PSBM-125735
>
> Signed-off-by: Alexander Mikhalitsyn <alexander.mikhalitsyn at virtuozzo.com>
> (cherry-picked from c59eb09a181a666cdf9d6e71ead567ba1f4eda20)
> https://jira.sw.ru/browse/PSBM-127858
>
> Signed-off-by: Valeriy Vdovin <valeriy.vdovin 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 5041a6cc134e..5d5e1b4da7ae 100644
> --- a/mm/memcontrol.c
> +++ b/mm/memcontrol.c
> @@ -4374,7 +4374,7 @@ static int memcg_stat_show(struct seq_file *m, void *v)
>  	else
>  		seq_printf(m, "oom %lu\n",
>  			atomic_long_read(&memcg->memory_events[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", lru_list_name(i),
>


More information about the Devel mailing list