mm: fix memcg stack accounting for sub-page stacks
[deliverable/linux.git] / mm / memcontrol.c
index 13be30c3ea7831e56e437380d7da3f6804c0dd5e..c265212bec8c0f412e9f23e260a5ff0d490ea046 100644 (file)
@@ -5171,7 +5171,7 @@ static int memory_stat_show(struct seq_file *m, void *v)
        seq_printf(m, "file %llu\n",
                   (u64)stat[MEM_CGROUP_STAT_CACHE] * PAGE_SIZE);
        seq_printf(m, "kernel_stack %llu\n",
-                  (u64)stat[MEMCG_KERNEL_STACK] * PAGE_SIZE);
+                  (u64)stat[MEMCG_KERNEL_STACK_KB] * 1024);
        seq_printf(m, "slab %llu\n",
                   (u64)(stat[MEMCG_SLAB_RECLAIMABLE] +
                         stat[MEMCG_SLAB_UNRECLAIMABLE]) * PAGE_SIZE);
This page took 0.024968 seconds and 5 git commands to generate.