]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: memcg: remove unneeded checks from uncharge_page()
authorJohannes Weiner <jweiner@redhat.com>
Fri, 16 Dec 2011 04:50:38 +0000 (15:50 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 19 Dec 2011 07:19:51 +0000 (18:19 +1100)
commitb72f6a618c6a6cc537ae08d08344a21a646b3045
tree44470d2f389ea16ae5be7208f26d465848daaf40
parent42fa065d43f774bd7d94e421c07901acb5f6ac1c
mm: memcg: remove unneeded checks from uncharge_page()

mem_cgroup_uncharge_page() is only called on either freshly allocated
pages without page->mapping or on rmapped PageAnon() pages.  There is no
need to check for a page->mapping that is not an anon_vma.

Signed-off-by: Johannes Weiner <jweiner@redhat.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Cc: Balbir Singh <bsingharora@gmail.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol.c