diff options
Diffstat (limited to 'mm/slab_common.c')
-rw-r--r-- | mm/slab_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/slab_common.c b/mm/slab_common.c index 274697e1a42a..59e41bb81575 100644 --- a/mm/slab_common.c +++ b/mm/slab_common.c | |||
@@ -646,7 +646,7 @@ void memcg_deactivate_kmem_caches(struct mem_cgroup *memcg) | |||
646 | if (!c) | 646 | if (!c) |
647 | continue; | 647 | continue; |
648 | 648 | ||
649 | __kmem_cache_shrink(c, true); | 649 | __kmemcg_cache_deactivate(c); |
650 | arr->entries[idx] = NULL; | 650 | arr->entries[idx] = NULL; |
651 | } | 651 | } |
652 | mutex_unlock(&slab_mutex); | 652 | mutex_unlock(&slab_mutex); |
@@ -794,7 +794,7 @@ int kmem_cache_shrink(struct kmem_cache *cachep) | |||
794 | get_online_cpus(); | 794 | get_online_cpus(); |
795 | get_online_mems(); | 795 | get_online_mems(); |
796 | kasan_cache_shrink(cachep); | 796 | kasan_cache_shrink(cachep); |
797 | ret = __kmem_cache_shrink(cachep, false); | 797 | ret = __kmem_cache_shrink(cachep); |
798 | put_online_mems(); | 798 | put_online_mems(); |
799 | put_online_cpus(); | 799 | put_online_cpus(); |
800 | return ret; | 800 | return ret; |