summaryrefslogtreecommitdiffstats
path: root/mm/oom_kill.c
diff options
context:
space:
mode:
authorDaisuke Nishimura2010-08-11 03:02:59 +0200
committerLinus Torvalds2010-08-11 17:59:18 +0200
commitbd0d24bfe8a8f8d2400569740874a67d164d40a9 (patch)
tree9d592f6566adacc3e8da3d2c06411a16b2d45763 /mm/oom_kill.c
parentmemcg: clean up waiting move acct (diff)
downloadkernel-qcow2-linux-bd0d24bfe8a8f8d2400569740874a67d164d40a9.tar.gz
kernel-qcow2-linux-bd0d24bfe8a8f8d2400569740874a67d164d40a9.tar.xz
kernel-qcow2-linux-bd0d24bfe8a8f8d2400569740874a67d164d40a9.zip
memcg: remove redundant code
- try_get_mem_cgroup_from_mm() calls rcu_read_lock/unlock by itself, so we don't have to call them in task_in_mem_cgroup(). - *mz is not used in __mem_cgroup_uncharge_common(). - we don't have to call lookup_page_cgroup() in mem_cgroup_end_migration() after we've cleared PCG_MIGRATION of @oldpage. - remove empty comment. - remove redundant empty line in mem_cgroup_cache_charge(). Signed-off-by: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp> Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/oom_kill.c')
0 files changed, 0 insertions, 0 deletions