]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: memcg: remove unneeded checks from uncharge_page()
authorJohannes Weiner <jweiner@redhat.com>
Thu, 8 Dec 2011 04:42:47 +0000 (15:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 13 Dec 2011 06:43:33 +0000 (17:43 +1100)
commitcae63c11aa6907dbfb842946ea60230c938ac0ea
tree198b916494b429a8510c00573438e431d04b0101
parentd89ff457dc5dee255e20a4f235b134b450627607
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