* Re: + memcg-add-memcg-sanity-checks-at-allocating-and-freeing-pages-update.patch added to -mm tree
[not found] <201102042108.p14L8doV019035@imap1.linux-foundation.org>
@ 2011-02-15 2:39 ` Daisuke Nishimura
0 siblings, 0 replies; only message in thread
From: Daisuke Nishimura @ 2011-02-15 2:39 UTC (permalink / raw)
To: akpm
Cc: balbir, hannes, kamezawa.hiroyu, minchan.kim, Daisuke Nishimura,
linux-mm
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>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-02-15 2:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <201102042108.p14L8doV019035@imap1.linux-foundation.org>
2011-02-15 2:39 ` + memcg-add-memcg-sanity-checks-at-allocating-and-freeing-pages-update.patch added to -mm tree Daisuke Nishimura
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox