From: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
To: akpm@linux-foundation.org
Cc: balbir@linux.vnet.ibm.com, hannes@cmpxchg.org,
kamezawa.hiroyu@jp.fujitsu.com, minchan.kim@gmail.com,
Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>,
linux-mm <linux-mm@kvack.org>
Subject: Re: + memcg-add-memcg-sanity-checks-at-allocating-and-freeing-pages-update.patch added to -mm tree
Date: Tue, 15 Feb 2011 11:39:34 +0900 [thread overview]
Message-ID: <20110215113934.46d057ae.nishimura@mxp.nes.nec.co.jp> (raw)
In-Reply-To: <201102042108.p14L8doV019035@imap1.linux-foundation.org>
This is a aditional patch for:
memcg-add-memcg-sanity-checks-at-allocating-and-freeing-pages.patch
and can be applied after:
memcg-add-memcg-sanity-checks-at-allocating-and-freeing-pages-update.patch
===
From: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
- print pc->flags in hex.
- print the path of the cgroup in the same line as pc->mem_cgroup.
Signed-off-by: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
---
mm/memcontrol.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 686f1ce..7e5cc5c 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -3040,7 +3040,7 @@ void mem_cgroup_print_bad_page(struct page *page)
int ret = -1;
char *path;
- printk(KERN_ALERT "pc:%p pc->flags:%ld pc->mem_cgroup:%p",
+ printk(KERN_ALERT "pc:%p pc->flags:%lx pc->mem_cgroup:%p",
pc, pc->flags, pc->mem_cgroup);
path = kmalloc(PATH_MAX, GFP_KERNEL);
@@ -3051,7 +3051,7 @@ void mem_cgroup_print_bad_page(struct page *page)
rcu_read_unlock();
}
- printk(KERN_ALERT "(%s)\n",
+ printk(KERN_CONT "(%s)\n",
(ret < 0) ? "cannot get the path" : path);
kfree(path);
}
--
1.7.1
--
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/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
parent reply other threads:[~2011-02-15 2:43 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <201102042108.p14L8doV019035@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=20110215113934.46d057ae.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=hannes@cmpxchg.org \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-mm@kvack.org \
--cc=minchan.kim@gmail.com \
/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