|
@@ -213,6 +213,9 @@ struct mem_cgroup {
|
|
/* OOM-Killer disable */
|
|
/* OOM-Killer disable */
|
|
int oom_kill_disable;
|
|
int oom_kill_disable;
|
|
|
|
|
|
|
|
+ /* handle for "memory.events" */
|
|
|
|
+ struct cgroup_file events_file;
|
|
|
|
+
|
|
/* protect arrays of thresholds */
|
|
/* protect arrays of thresholds */
|
|
struct mutex thresholds_lock;
|
|
struct mutex thresholds_lock;
|
|
|
|
|
|
@@ -286,6 +289,7 @@ static inline void mem_cgroup_events(struct mem_cgroup *memcg,
|
|
unsigned int nr)
|
|
unsigned int nr)
|
|
{
|
|
{
|
|
this_cpu_add(memcg->stat->events[idx], nr);
|
|
this_cpu_add(memcg->stat->events[idx], nr);
|
|
|
|
+ cgroup_file_notify(&memcg->events_file);
|
|
}
|
|
}
|
|
|
|
|
|
bool mem_cgroup_low(struct mem_cgroup *root, struct mem_cgroup *memcg);
|
|
bool mem_cgroup_low(struct mem_cgroup *root, struct mem_cgroup *memcg);
|