From: Johannes Weiner Date: Tue, 24 Apr 2012 18:22:33 +0000 (+0200) Subject: mm: memcg: move pc lookup point to commit_charge() X-Git-Tag: v3.4-rc5~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce587e65e8c669eec61df7fb1c515720302e3cc0;p=pandora-kernel.git mm: memcg: move pc lookup point to commit_charge() None of the callsites actually need the page_cgroup descriptor themselves, so just pass the page and do the look up in there. We already had two bugs (6568d4a 'mm: memcg: update the correct soft limit tree during migration' and 'memcg: fix Bad page state after replace_page_cache') where the passed page and pc were not referring to the same page frame. Signed-off-by: Johannes Weiner Acked-by: Hugh Dickins Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed