memcg: remove redundant code in mem_cgroup_force_empty_write()
authorLi Zefan <lizefan@huawei.com>
Thu, 12 Sep 2013 22:13:19 +0000 (15:13 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Sep 2013 22:38:00 +0000 (15:38 -0700)
commitc33bd8354f3a3bb26a98d2b6bf600b7b35657328
tree3a05898992a6bf4475051d9b49ace72f304473cf
parentd5d04bb48f0eb89c14e76779bb46212494de0bec
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c