From: Johannes Weiner Date: Tue, 31 Jul 2012 23:45:31 +0000 (-0700) Subject: mm: memcg: push down PageSwapCache check into uncharge entry functions X-Git-Tag: v3.6-rc1~24^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c59b89c81eab7fe7dcf08f2252ae22a6c081ce8;p=pandora-kernel.git mm: memcg: push down PageSwapCache check into uncharge entry functions Not all uncharge paths need to check if the page is swapcache, some of them can know for sure. Push down the check into all callsites of uncharge_common() so that the patch that removes some of them is more obvious. Signed-off-by: Johannes Weiner Acked-by: Michal Hocko Cc: David Rientjes Cc: Hugh Dickins Cc: Johannes Weiner Acked-by: KAMEZAWA Hiroyuki Cc: Wanpeng Li Cc: Mel Gorman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed