diff options
Diffstat (limited to 'kernel/include/linux/memcontrol.h')
-rw-r--r-- | kernel/include/linux/memcontrol.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/include/linux/memcontrol.h b/kernel/include/linux/memcontrol.h index cd0e2413c..435fd8426 100644 --- a/kernel/include/linux/memcontrol.h +++ b/kernel/include/linux/memcontrol.h @@ -174,6 +174,11 @@ struct mem_cgroup_thresholds { struct mem_cgroup_threshold_ary *spare; }; +struct mem_cgroup_id { + int id; + atomic_t ref; +}; + /* * The memory controller data structure. The memory controller controls both * page cache and RSS per cgroup. We would eventually like to provide @@ -183,6 +188,9 @@ struct mem_cgroup_thresholds { struct mem_cgroup { struct cgroup_subsys_state css; + /* Private memcg ID. Used to ID objects that outlive the cgroup */ + struct mem_cgroup_id id; + /* Accounted resources */ struct page_counter memory; struct page_counter memsw; |