diff options
author | Johannes Weiner <jweiner@redhat.com> | 2012-01-12 17:18:45 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-12 20:13:06 -0800 |
commit | 40f23a21a8501c1b2c65c50c19b516488ac31313 (patch) | |
tree | 4e70dbd9e7cc1dda350156bf05786ede7dbf8256 /mm/page_cgroup.c | |
parent | 7a0524cfc8f9f585471a31b1282a9ce4a1a7d444 (diff) | |
download | op-kernel-dev-40f23a21a8501c1b2c65c50c19b516488ac31313.zip op-kernel-dev-40f23a21a8501c1b2c65c50c19b516488ac31313.tar.gz |
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_cgroup.c')
0 files changed, 0 insertions, 0 deletions