diff options
author | Qiang Huang <h.huangqiang@huawei.com> | 2013-11-12 18:08:23 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-12 22:09:10 -0500 |
commit | 2ade4de871172b17dd81b336cf0488a83885ffde (patch) | |
tree | 9bdebd7f22388e23386c35cdfe0f9a965b414b36 /mm/slab.h | |
parent | f35c3a8eed52878c2dde9c4b9a87b276127f7f8d (diff) |
memcg, kmem: rename cache_from_memcg to cache_from_memcg_idx
We can't see the relationship with memcg from the parameters,
so the name with memcg_idx would be more reasonable.
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
Reviewed-by: Pekka Enberg <penberg@kernel.org>
Acked-by: David Rientjes <rientjes@google.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Glauber Costa <glommer@parallels.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/slab.h')
-rw-r--r-- | mm/slab.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -160,7 +160,8 @@ static inline const char *cache_name(struct kmem_cache *s) | |||
160 | return s->name; | 160 | return s->name; |
161 | } | 161 | } |
162 | 162 | ||
163 | static inline struct kmem_cache *cache_from_memcg(struct kmem_cache *s, int idx) | 163 | static inline struct kmem_cache * |
164 | cache_from_memcg_idx(struct kmem_cache *s, int idx) | ||
164 | { | 165 | { |
165 | if (!s->memcg_params) | 166 | if (!s->memcg_params) |
166 | return NULL; | 167 | return NULL; |
@@ -204,7 +205,8 @@ static inline const char *cache_name(struct kmem_cache *s) | |||
204 | return s->name; | 205 | return s->name; |
205 | } | 206 | } |
206 | 207 | ||
207 | static inline struct kmem_cache *cache_from_memcg(struct kmem_cache *s, int idx) | 208 | static inline struct kmem_cache * |
209 | cache_from_memcg_idx(struct kmem_cache *s, int idx) | ||
208 | { | 210 | { |
209 | return NULL; | 211 | return NULL; |
210 | } | 212 | } |