diff options
Diffstat (limited to 'include/linux/memcontrol.h')
-rw-r--r-- | include/linux/memcontrol.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index 54992fe0959f..2607c91230af 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h | |||
@@ -398,7 +398,7 @@ static inline void sock_release_memcg(struct sock *sk) | |||
398 | #ifdef CONFIG_MEMCG_KMEM | 398 | #ifdef CONFIG_MEMCG_KMEM |
399 | extern struct static_key memcg_kmem_enabled_key; | 399 | extern struct static_key memcg_kmem_enabled_key; |
400 | 400 | ||
401 | extern int memcg_limited_groups_array_size; | 401 | extern int memcg_nr_cache_ids; |
402 | 402 | ||
403 | /* | 403 | /* |
404 | * Helper macro to loop through all memcg-specific caches. Callers must still | 404 | * Helper macro to loop through all memcg-specific caches. Callers must still |
@@ -406,7 +406,7 @@ extern int memcg_limited_groups_array_size; | |||
406 | * the slab_mutex must be held when looping through those caches | 406 | * the slab_mutex must be held when looping through those caches |
407 | */ | 407 | */ |
408 | #define for_each_memcg_cache_index(_idx) \ | 408 | #define for_each_memcg_cache_index(_idx) \ |
409 | for ((_idx) = 0; (_idx) < memcg_limited_groups_array_size; (_idx)++) | 409 | for ((_idx) = 0; (_idx) < memcg_nr_cache_ids; (_idx)++) |
410 | 410 | ||
411 | static inline bool memcg_kmem_enabled(void) | 411 | static inline bool memcg_kmem_enabled(void) |
412 | { | 412 | { |