|
|
@@ -5198,8 +5198,8 @@ static int memory_stat_show(struct seq_file *m, void *v)
|
|
|
seq_printf(m, "kernel_stack %llu\n",
|
|
|
(u64)stat[MEMCG_KERNEL_STACK_KB] * 1024);
|
|
|
seq_printf(m, "slab %llu\n",
|
|
|
- (u64)(stat[MEMCG_SLAB_RECLAIMABLE] +
|
|
|
- stat[MEMCG_SLAB_UNRECLAIMABLE]) * PAGE_SIZE);
|
|
|
+ (u64)(stat[NR_SLAB_RECLAIMABLE] +
|
|
|
+ stat[NR_SLAB_UNRECLAIMABLE]) * PAGE_SIZE);
|
|
|
seq_printf(m, "sock %llu\n",
|
|
|
(u64)stat[MEMCG_SOCK] * PAGE_SIZE);
|
|
|
|
|
|
@@ -5223,9 +5223,9 @@ static int memory_stat_show(struct seq_file *m, void *v)
|
|
|
}
|
|
|
|
|
|
seq_printf(m, "slab_reclaimable %llu\n",
|
|
|
- (u64)stat[MEMCG_SLAB_RECLAIMABLE] * PAGE_SIZE);
|
|
|
+ (u64)stat[NR_SLAB_RECLAIMABLE] * PAGE_SIZE);
|
|
|
seq_printf(m, "slab_unreclaimable %llu\n",
|
|
|
- (u64)stat[MEMCG_SLAB_UNRECLAIMABLE] * PAGE_SIZE);
|
|
|
+ (u64)stat[NR_SLAB_UNRECLAIMABLE] * PAGE_SIZE);
|
|
|
|
|
|
/* Accumulated memory events */
|
|
|
|