Commit 63a6efbc authored by Daisuke Nishimura's avatar Daisuke Nishimura Committed by James Toy

The usage of swap should be showed in bytes.

Signed-off-by: default avatarDaisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Balbir Singh <balbir@linux.vnet.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent fdbfcba2
...@@ -2725,7 +2725,7 @@ static int mem_cgroup_get_local_stat(struct mem_cgroup *mem, void *data) ...@@ -2725,7 +2725,7 @@ static int mem_cgroup_get_local_stat(struct mem_cgroup *mem, void *data)
s->stat[MCS_PGPGOUT] += val; s->stat[MCS_PGPGOUT] += val;
if (do_swap_account) { if (do_swap_account) {
val = mem_cgroup_read_stat(&mem->stat, MEM_CGROUP_STAT_SWAPOUT); val = mem_cgroup_read_stat(&mem->stat, MEM_CGROUP_STAT_SWAPOUT);
s->stat[MCS_SWAP] += val; s->stat[MCS_SWAP] += val * PAGE_SIZE;
} }
/* per zone stat */ /* per zone stat */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment