mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
mm: move page->mem_cgroup bad page handling into generic code
Now that the external page_cgroup data structure and its lookup is gone, let the generic bad_page() check for page->mem_cgroup sanity. Signed-off-by: Johannes Weiner <[email protected]> Acked-by: Michal Hocko <[email protected]> Acked-by: Vladimir Davydov <[email protected]> Acked-by: David S. Miller <[email protected]> Cc: KAMEZAWA Hiroyuki <[email protected]> Cc: "Kirill A. Shutemov" <[email protected]> Cc: Tejun Heo <[email protected]> Cc: Joonsoo Kim <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
5d1ea48bdd
commit
9edad6ea0f
5 changed files with 12 additions and 49 deletions
|
|
@ -95,7 +95,10 @@ void dump_page_badflags(struct page *page, const char *reason,
|
|||
dump_flags(page->flags & badflags,
|
||||
pageflag_names, ARRAY_SIZE(pageflag_names));
|
||||
}
|
||||
mem_cgroup_print_bad_page(page);
|
||||
#ifdef CONFIG_MEMCG
|
||||
if (page->mem_cgroup)
|
||||
pr_alert("page->mem_cgroup:%p\n", page->mem_cgroup);
|
||||
#endif
|
||||
}
|
||||
|
||||
void dump_page(struct page *page, const char *reason)
|
||||
|
|
|
|||
Loading…
Reference in a new issue