diff options
author | Johannes Weiner <jweiner@redhat.com> | 2012-01-12 17:18:43 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-12 20:13:06 -0800 |
commit | 7a0524cfc8f9f585471a31b1282a9ce4a1a7d444 (patch) | |
tree | 4e31e1ec7e892d67e48d1199b9e8590ad5718e7a /mm/page_cgroup.c | |
parent | 00c54c0bac24bb02d2460c516da76651a7451286 (diff) | |
download | op-kernel-dev-7a0524cfc8f9f585471a31b1282a9ce4a1a7d444.zip op-kernel-dev-7a0524cfc8f9f585471a31b1282a9ce4a1a7d444.tar.gz |
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 <jweiner@redhat.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Cc: David Rientjes <rientjes@google.com>
Cc: Balbir Singh <bsingharora@gmail.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