diff options
author | Glauber Costa <glommer@parallels.com> | 2012-12-18 17:22:27 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-18 18:02:13 -0500 |
commit | ba6c496ed834a37a26fc6fc87fc9aecb0fa0014d (patch) | |
tree | cd229b78ca04817354865c9fdf57b564a6bf7852 /include/linux/slub_def.h | |
parent | d5bdae7d59451b9d63303f7794ef32bb76ba6330 (diff) |
slab/slub: struct memcg_params
For the kmem slab controller, we need to record some extra information in
the kmem_cache structure.
Signed-off-by: Glauber Costa <glommer@parallels.com>
Signed-off-by: Suleiman Souhlal <suleiman@google.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Frederic Weisbecker <fweisbec@redhat.com>
Cc: Greg Thelen <gthelen@google.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: JoonSoo Kim <js1304@gmail.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Rik van Riel <riel@redhat.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/slub_def.h')
-rw-r--r-- | include/linux/slub_def.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/slub_def.h b/include/linux/slub_def.h index df448adb7283..961e72eab907 100644 --- a/include/linux/slub_def.h +++ b/include/linux/slub_def.h | |||
@@ -101,6 +101,9 @@ struct kmem_cache { | |||
101 | #ifdef CONFIG_SYSFS | 101 | #ifdef CONFIG_SYSFS |
102 | struct kobject kobj; /* For sysfs */ | 102 | struct kobject kobj; /* For sysfs */ |
103 | #endif | 103 | #endif |
104 | #ifdef CONFIG_MEMCG_KMEM | ||
105 | struct memcg_cache_params *memcg_params; | ||
106 | #endif | ||
104 | 107 | ||
105 | #ifdef CONFIG_NUMA | 108 | #ifdef CONFIG_NUMA |
106 | /* | 109 | /* |