From: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
To: akpm@linux-foundation.org
Cc: nishimura@mxp.nes.nec.co.jp, balbir@linux.vnet.ibm.com,
kamezawa.hiroyu@jp.fujitsu.com, linux-mm <linux-mm@kvack.org>
Subject: Re: + memcg-show-swap-usage-in-stat-file.patch added to -mm tree
Date: Fri, 4 Sep 2009 08:58:26 +0900 [thread overview]
Message-ID: <20090904085826.ba745164.nishimura@mxp.nes.nec.co.jp> (raw)
In-Reply-To: <200908242004.n7OK4VT8016136@imap1.linux-foundation.org>
This is a bugfix patch for memcg-show-swap-usage-in-stat-file.patch in mmotm.
I'm sorry for bothering you.
===
From: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
The usage of swap should be showed in bytes.
Signed-off-by: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
---
mm/memcontrol.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index ae80de0..927e7e6 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -2712,7 +2712,7 @@ static int mem_cgroup_get_local_stat(struct mem_cgroup *mem, void *data)
s->stat[MCS_PGPGOUT] += val;
if (do_swap_account) {
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 */
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
parent reply other threads:[~2009-09-04 0:13 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <200908242004.n7OK4VT8016136@imap1.linux-foundation.org>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090904085826.ba745164.nishimura@mxp.nes.nec.co.jp \
--to=nishimura@mxp.nes.nec.co.jp \
--cc=akpm@linux-foundation.org \
--cc=balbir@linux.vnet.ibm.com \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox