diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 2450d89486d40e90226cede9dd790fb1e23b389a..71a9774e6ead9af2ac084161dc06edcfd77b2b61 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -3061,8 +3061,7 @@ void mem_cgroup_uncharge_page(struct page *page) /* early check. */ if (page_mapped(page)) return; - if (page->mapping && !PageAnon(page)) - return; + VM_BUG_ON(page->mapping && !PageAnon(page)); __mem_cgroup_uncharge_common(page, MEM_CGROUP_CHARGE_TYPE_MAPPED); }