Message ID | 20170623071303.13469-10-ying.huang@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 99e96ae59cd3..123564bcdd77 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -5407,7 +5407,7 @@ int mem_cgroup_try_charge(struct page *page, struct mm_struct *mm, * in turn serializes uncharging. */ VM_BUG_ON_PAGE(!PageLocked(page), page); - if (page->mem_cgroup) + if (compound_head(page)->mem_cgroup) goto out; if (do_swap_account) {