diff options
-rw-r--r-- | mm/memcontrol.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 9f2f64697409..602207be9853 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c | |||
@@ -3364,23 +3364,8 @@ void mem_cgroup_print_bad_page(struct page *page) | |||
3364 | 3364 | ||
3365 | pc = lookup_page_cgroup_used(page); | 3365 | pc = lookup_page_cgroup_used(page); |
3366 | if (pc) { | 3366 | if (pc) { |
3367 | int ret = -1; | 3367 | printk(KERN_ALERT "pc:%p pc->flags:%lx pc->mem_cgroup:%p\n", |
3368 | char *path; | ||
3369 | |||
3370 | printk(KERN_ALERT "pc:%p pc->flags:%lx pc->mem_cgroup:%p", | ||
3371 | pc, pc->flags, pc->mem_cgroup); | 3368 | pc, pc->flags, pc->mem_cgroup); |
3372 | |||
3373 | path = kmalloc(PATH_MAX, GFP_KERNEL); | ||
3374 | if (path) { | ||
3375 | rcu_read_lock(); | ||
3376 | ret = cgroup_path(pc->mem_cgroup->css.cgroup, | ||
3377 | path, PATH_MAX); | ||
3378 | rcu_read_unlock(); | ||
3379 | } | ||
3380 | |||
3381 | printk(KERN_CONT "(%s)\n", | ||
3382 | (ret < 0) ? "cannot get the path" : path); | ||
3383 | kfree(path); | ||
3384 | } | 3369 | } |
3385 | } | 3370 | } |
3386 | #endif | 3371 | #endif |