]> git.karo-electronics.de Git - karo-tx-linux.git/commit
memcg: remove redundant code in mem_cgroup_force_empty_write()
authorLi Zefan <lizefan@huawei.com>
Thu, 15 Aug 2013 23:39:29 +0000 (09:39 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 Aug 2013 07:27:04 +0000 (17:27 +1000)
commit1787aa6d408f3444ade039f25f4cee7e9b695ac6
tree12f89cc32b76c52fd8a7272af3fc86ec91aae4be
parentcd7e25826bf2076ede72b38b271929cc48c15ffa
memcg: remove redundant code in mem_cgroup_force_empty_write()

vfs guarantees the cgroup won't be destroyed, so it's redundant to get a
css reference.

Signed-off-by: Li Zefan <lizefan@huawei.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol.c