memcg: generate file modified notifications on "memory.events"
authorTejun Heo <tj@kernel.org>
Fri, 18 Sep 2015 22:01:59 +0000 (18:01 -0400)
committerTejun Heo <tj@kernel.org>
Mon, 21 Sep 2015 19:14:47 +0000 (15:14 -0400)
commit472912a2b5e2027efd58aa47f78acb2373675187
treea555fffaffdd8b19c530c722770016092997f111
parent6f60eade2433cb3a38687d5f8a4f44b92c6c51bf
memcg: generate file modified notifications on "memory.events"

cgroup core only recently grew generic notification support.  Wire up
"memory.events" so that it triggers a file modified event whenever its
content changes.

v2: Refreshed on top of mem_cgroup relocation.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Michal Hocko <mhocko@kernel.org>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Li Zefan <lizefan@huawei.com>
include/linux/memcontrol.h
mm/memcontrol.c