From: Johannes Weiner Date: Fri, 13 Jan 2012 01:18:43 +0000 (-0800) Subject: mm: memcg: remove unneeded checks from newpage_charge() X-Git-Tag: v3.3-rc1~81^2~59 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a0524cfc8f9f585471a31b1282a9ce4a1a7d444;p=pandora-kernel.git mm: memcg: remove unneeded checks from newpage_charge() All callsites pass in freshly allocated pages and a valid mm. As a result, all checks pertaining to the page's mapcount, page->mapping or the fallback to init_mm are unneeded. Signed-off-by: Johannes Weiner Acked-by: KAMEZAWA Hiroyuki Acked-by: Michal Hocko Cc: David Rientjes Cc: Balbir Singh Cc: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed