memcg: cgroup_write_event_control() now knows @css is for memcg
authorTejun Heo <tj@kernel.org>
Fri, 22 Nov 2013 23:20:42 +0000 (18:20 -0500)
committerTejun Heo <tj@kernel.org>
Fri, 22 Nov 2013 23:20:42 +0000 (18:20 -0500)
commitb5557c4c3b1a38074d7001b87c2482eda3a0834a
tree4bd6b1a6d05ee74485a88ae814828d0befc04fc6
parent79bd9814e5ec9a288d6599f53aeac0b548fdfe52
memcg: cgroup_write_event_control() now knows @css is for memcg

@css for cgroup_write_event_control() is now always for memcg and the
target file should be a memcg file too.  Drop code which assumes @css
is dummy_css and the target file may belong to different subsystems.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
mm/memcontrol.c